js: fix selector for hamburger menu

This commit is contained in:
Ryan Heywood 2025-04-08 14:11:25 -04:00
parent 036f92ef17
commit 00a5a2219f
Signed by: ryan
GPG Key ID: 8E401478A3FBEF72
1 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
document.addEventListener('DOMContentLoaded', function () {
const collapsibleButton = document.querySelector("#hamburger-menu");
const collapsibleButton = document.querySelector(".hamburger-menu");
const menuContent = document.querySelector(".menu-content");
collapsibleButton.addEventListener("click", function () {
menuContent.classList.toggle("active");
@ -8,7 +8,7 @@ document.addEventListener('DOMContentLoaded', function () {
} else {
menuContent.style.display = "block";
}
});
});
initializeCompaniesCarousel();
// TODO: useful for news article carousel
@ -18,7 +18,7 @@ document.addEventListener('DOMContentLoaded', function () {
// createCarouselItems(data);
// initializeCarousel();
// })
// .catch(error => console.error('Error loading JSON:', error));
// .catch(error => console.error('Error loading JSON:', error));
});
function createCarouselItems(items) {