aboutsummaryrefslogtreecommitdiffstats
path: root/static/js/wiki.js
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-06-13 16:43:42 +0100
committerGravatar Gareth Coles <[email protected]>2018-06-13 16:43:42 +0100
commitbe2bbe35cf49763ad0258c005f3cbdddd7a21d75 (patch)
tree962d5e52f4bb57c397c068ae6a11b57952cfc459 /static/js/wiki.js
parent[DB] Attempt reconnection if current connection was lost (diff)
Compile as much JS with Gulp as possible
This will concatenate ALL of our JS, and minify it - thus leaving us with a single file to be loaded. There's a few libraries we can't do this with, unfortunately - these are now added in fouc.js: * Ace Editor * Flatpickr * Font-Awesome
Diffstat (limited to 'static/js/wiki.js')
-rw-r--r--static/js/wiki.js15
1 files changed, 0 insertions, 15 deletions
diff --git a/static/js/wiki.js b/static/js/wiki.js
deleted file mode 100644
index 603eebef..00000000
--- a/static/js/wiki.js
+++ /dev/null
@@ -1,15 +0,0 @@
-"use strict";
-
-(function(){ // Use a closure to avoid polluting global scope
- const visible_class = "uk-visible@s";
- const sidebar = document.getElementById("wiki-sidebar");
- const display_button = document.getElementById("wiki-sidebar-button");
-
- display_button.onclick = function() {
- if (sidebar.classList.contains(visible_class)) {
- sidebar.classList.remove(visible_class);
- } else {
- sidebar.classList.add(visible_class);
- }
- };
-})();