From 507775792ac40d11557a8be3bfaa1c27902a180c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Gl=C3=BCpker?= Date: Tue, 3 Oct 2017 17:57:28 +0200 Subject: Copy to clipboard without popup :) --- static/hide.js | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 static/hide.js (limited to 'static/hide.js') diff --git a/static/hide.js b/static/hide.js deleted file mode 100644 index 67cb5c9..0000000 --- a/static/hide.js +++ /dev/null @@ -1,17 +0,0 @@ -var hidden = false; - -function hideOffline() { - hidden = !hidden; - var playerboxes = document.querySelectorAll('div.Offline'); - for(index in playerboxes) /* Show/Hide player row */ - { - if(typeof playerboxes[index] != 'object') continue; - playerboxes[index].style.display = (hidden) ? 'none' : 'inline-block'; - } - /* And update the text on our button. */ - document.querySelector('#offlinetoggle').innerHTML = (hidden) ? 'Show Offline' : 'Hide Offline'; -} -/* Execute function on page load. */ -setTimeout(hideOffline, 1); - -// vim: commentstring=/*\ %s\ */ -- cgit v1.2.3