website/js/burgerMenu.js
2021-03-24 23:50:10 +01:00

9 lines
No EOL
279 B
JavaScript

let burgerMenu = document.querySelector("#burgerMenu");
if(burgerMenu != null) {
burgerMenu.onclick = () => {
document.getElementById("burgerMenu").classList.toggle("change");
document.getElementById("mainMenuContainer").classList.toggle("visible");
}
}