aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/assets/js
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2018-02-02 21:05:26 -0500
committerGitHub <noreply@github.com>2018-02-02 21:05:26 -0500
commitd68ea6d7eb8cadf687308fa3204386b79df0556b (patch)
tree0797c5c53e09b6af5eb996ab42e1f814ee615561 /app/src/main/assets/js
parentf36e0fff23abb5c892b40d1a9fb70776078976c4 (diff)
downloadfrost-d68ea6d7eb8cadf687308fa3204386b79df0556b.tar.gz
frost-d68ea6d7eb8cadf687308fa3204386b79df0556b.tar.bz2
frost-d68ea6d7eb8cadf687308fa3204386b79df0556b.zip
Feature/post (#696)v1.8.1
* Reorder final override * Add initial fab bindings * Update scripts * Optimize and use js header hider * Remove old header hider * Use method for generating clicker
Diffstat (limited to 'app/src/main/assets/js')
-rw-r--r--app/src/main/assets/js/header_hider.coffee11
-rw-r--r--app/src/main/assets/js/header_hider.js19
2 files changed, 30 insertions, 0 deletions
diff --git a/app/src/main/assets/js/header_hider.coffee b/app/src/main/assets/js/header_hider.coffee
new file mode 100644
index 00000000..40510c79
--- /dev/null
+++ b/app/src/main/assets/js/header_hider.coffee
@@ -0,0 +1,11 @@
+header = document.querySelector('#header')
+
+if !header
+ return
+
+jewel = header.querySelector('#mJewelNav')
+
+if !jewel
+ return
+
+header.style.display = 'none' \ No newline at end of file
diff --git a/app/src/main/assets/js/header_hider.js b/app/src/main/assets/js/header_hider.js
new file mode 100644
index 00000000..f29887ee
--- /dev/null
+++ b/app/src/main/assets/js/header_hider.js
@@ -0,0 +1,19 @@
+'use strict';
+
+(function () {
+ var header, jewel;
+
+ header = document.querySelector('#header');
+
+ if (!header) {
+ return;
+ }
+
+ jewel = header.querySelector('#mJewelNav');
+
+ if (!jewel) {
+ return;
+ }
+
+ header.style.display = 'none';
+}).call(undefined); \ No newline at end of file