From 95258be27446b3584528c5bc7177aca40ddba2d5 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Fri, 5 Jul 2019 22:27:04 +0200 Subject: content: Reorganize to better suit ananke theme --- static/javascript/dropdown.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 static/javascript/dropdown.js (limited to 'static') 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'); + } + } +); -- cgit v1.2.3