aboutsummaryrefslogtreecommitdiff
path: root/static/javascript/dropdown.js
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2019-07-05 22:27:04 +0200
committerDimitri Staessens <dimitri@ouroboros.rocks>2019-07-05 22:27:04 +0200
commit95258be27446b3584528c5bc7177aca40ddba2d5 (patch)
treef918e4415eacaacf6e4c7b0d00337990f9095bc4 /static/javascript/dropdown.js
parente5d3f80261ebaed768ad718bd6fce0df848586fb (diff)
downloadwebsite-95258be27446b3584528c5bc7177aca40ddba2d5.tar.gz
website-95258be27446b3584528c5bc7177aca40ddba2d5.zip
content: Reorganize to better suit ananke theme
Diffstat (limited to 'static/javascript/dropdown.js')
-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');
+ }
+ }
+);