2
0
mirror of https://github.com/offen/website.git synced 2024-12-27 06:50:22 +01:00
website/homepage/theme/static/scripts/menu.js

12 lines
314 B
JavaScript
Raw Normal View History

;(function () {
var toggle = document.querySelector('#nav-toggle')
if (!toggle) {
return
2021-05-13 09:58:06 +02:00
}
toggle.addEventListener('click', function () {
toggle.classList.toggle('active')
var navList = document.querySelector('#navigation .nav-list')
navList && navList.classList.toggle('active')
})
})()