Compare commits

..

No commits in common. "00a5a2219f21f52b45d25cda91f0a4bfab098ae1" and "d3cfa03cef4558d4eade2ddde0b10b1e60d2fe21" have entirely different histories.

1 changed files with 18 additions and 19 deletions

View File

@ -1,24 +1,23 @@
document.addEventListener('DOMContentLoaded', function () {
const collapsibleButton = document.querySelector(".hamburger-menu");
const menuContent = document.querySelector(".menu-content");
collapsibleButton.addEventListener("click", function () {
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";
}
});
});
document.addEventListener('DOMContentLoaded', function () {
initializeCompaniesCarousel();
// TODO: useful for news article carousel
// fetch('../assets/js/carousel-items.json')
// .then(response => response.json())
// .then(data => {
// createCarouselItems(data);
// initializeCarousel();
// })
// .catch(error => console.error('Error loading JSON:', error));
fetch('../assets/js/carousel-items.json')
.then(response => response.json())
.then(data => {
createCarouselItems(data);
initializeCarousel();
})
.catch(error => console.error('Error loading JSON:', error));
});
function createCarouselItems(items) {