mirror of
https://github.com/offen/website.git
synced 2024-11-25 10:10:28 +01:00
12 lines
314 B
JavaScript
12 lines
314 B
JavaScript
;(function () {
|
|
var toggle = document.querySelector('#nav-toggle')
|
|
if (!toggle) {
|
|
return
|
|
}
|
|
toggle.addEventListener('click', function () {
|
|
toggle.classList.toggle('active')
|
|
var navList = document.querySelector('#navigation .nav-list')
|
|
navList && navList.classList.toggle('active')
|
|
})
|
|
})()
|