aboutsummaryrefslogtreecommitdiff
path: root/static/javascript/dropdown.js
blob: c1b317aae003a14acf8b9d703d9bfc764d59b152 (plain)
1
2
3
4
5
6
7
8
9
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');
        }
    }
);