window.addEventListener("load", () => { let menu = document.querySelector(".navbar-menu"); let nav = document.querySelector("nav"); // Toggle display of the menu for mobile; document.querySelector("#navbar-toggler").addEventListener("click", () => { menu.classList.toggle('shown'); nav.classList.toggle('menuShown'); }) })