js: fix selector for hamburger menu
This commit is contained in:
parent
036f92ef17
commit
00a5a2219f
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue