diff options
author | Dimitri Staessens <[email protected]> | 2019-07-05 22:27:04 +0200 |
---|---|---|
committer | Dimitri Staessens <[email protected]> | 2019-07-05 22:27:04 +0200 |
commit | 95258be27446b3584528c5bc7177aca40ddba2d5 (patch) | |
tree | f918e4415eacaacf6e4c7b0d00337990f9095bc4 /static/javascript | |
parent | e5d3f80261ebaed768ad718bd6fce0df848586fb (diff) | |
download | website-95258be27446b3584528c5bc7177aca40ddba2d5.tar.gz website-95258be27446b3584528c5bc7177aca40ddba2d5.zip |
content: Reorganize to better suit ananke theme
Diffstat (limited to 'static/javascript')
-rw-r--r-- | static/javascript/dropdown.js | 10 |
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'); + } + } +); |