aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/assets/js
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-06-19 15:31:10 -0700
committerAllan Wang <me@allanwang.ca>2017-06-19 15:31:10 -0700
commit382433780c3f4403723a78e409cb161c9fad5034 (patch)
tree1138696bdd6e04d2227acaa4ab19ee8b85b4d2f8 /app/src/main/assets/js
parent0720413ee859762fc4c2d8748ba10402dffd0be7 (diff)
downloadfrost-382433780c3f4403723a78e409cb161c9fad5034.tar.gz
frost-382433780c3f4403723a78e409cb161c9fad5034.tar.bz2
frost-382433780c3f4403723a78e409cb161c9fad5034.zip
Parse header badges
Diffstat (limited to 'app/src/main/assets/js')
-rw-r--r--app/src/main/assets/js/header_badges.js3
-rw-r--r--app/src/main/assets/js/header_badges.min.js3
2 files changed, 6 insertions, 0 deletions
diff --git a/app/src/main/assets/js/header_badges.js b/app/src/main/assets/js/header_badges.js
new file mode 100644
index 00000000..26315a5f
--- /dev/null
+++ b/app/src/main/assets/js/header_badges.js
@@ -0,0 +1,3 @@
+//bases the header contents if it exists
+var header = document.getElementById('mJewelNav');
+if (header !== null) Frost.handleHeader(header.outerHTML);
diff --git a/app/src/main/assets/js/header_badges.min.js b/app/src/main/assets/js/header_badges.min.js
new file mode 100644
index 00000000..9526474d
--- /dev/null
+++ b/app/src/main/assets/js/header_badges.min.js
@@ -0,0 +1,3 @@
+var header=document.getElementById("mJewelNav")
+
+;null!==header&&Frost.handleHeader(header.outerHTML); \ No newline at end of file