Compare commits
No commits in common. "00a5a2219f21f52b45d25cda91f0a4bfab098ae1" and "d3cfa03cef4558d4eade2ddde0b10b1e60d2fe21" have entirely different histories.
00a5a2219f
...
d3cfa03cef
|
@ -1,5 +1,4 @@
|
|||
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");
|
||||
|
@ -10,15 +9,15 @@ document.addEventListener('DOMContentLoaded', function () {
|
|||
}
|
||||
});
|
||||
|
||||
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) {
|
||||
|
|
Loading…
Reference in New Issue