summaryrefslogtreecommitdiff
path: root/static/hide.js
diff options
context:
space:
mode:
authorAndré Glüpker <git@wgmd.de>2017-10-03 17:57:28 +0200
committerAndré Glüpker <git@wgmd.de>2017-10-03 18:04:52 +0200
commit507775792ac40d11557a8be3bfaa1c27902a180c (patch)
treeac7bc977825a7f0e5f7afa783183a18fb784087c /static/hide.js
parentbe6cceee32ea03815ade73b0faee680e5d8795c8 (diff)
downloadsteam-507775792ac40d11557a8be3bfaa1c27902a180c.tar.gz
steam-507775792ac40d11557a8be3bfaa1c27902a180c.tar.bz2
steam-507775792ac40d11557a8be3bfaa1c27902a180c.zip
Copy to clipboard without popup :)
Diffstat (limited to 'static/hide.js')
-rw-r--r--static/hide.js17
1 files changed, 0 insertions, 17 deletions
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\ */