aboutsummaryrefslogtreecommitdiff
path: root/static/javascript
diff options
context:
space:
mode:
Diffstat (limited to 'static/javascript')
-rw-r--r--static/javascript/dropdown.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/static/javascript/dropdown.js b/static/javascript/dropdown.js
new file mode 100644
index 0000000..c1b317a
--- /dev/null
+++ b/static/javascript/dropdown.js
@@ -0,0 +1,10 @@
+var span = document.querySelector('span#about_chevron');
+var menu = document.querySelector('ul.sub-menu');
+ span.addEventListener('click', function (event) {
+ if (menu.classList.contains('dn')) {
+ menu.classList.remove('dn');
+ } else {
+ menu.classList.add('dn');
+ }
+ }
+);