const collapsibleButton = document.querySelector("#hamburger-menu"); const menuContent = document.querySelector(".menu-content"); collapsibleButton.addEventListener("click", function () { menuContent.classList.toggle("active"); if (menuContent.style.display === "block") { menuContent.style.display = "none"; } else { menuContent.style.display = "block"; } });