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");
|
const menuContent = document.querySelector(".menu-content");
|
||||||
collapsibleButton.addEventListener("click", function () {
|
collapsibleButton.addEventListener("click", function () {
|
||||||
menuContent.classList.toggle("active");
|
menuContent.classList.toggle("active");
|
||||||
|
@ -10,15 +9,15 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
document.addEventListener('DOMContentLoaded', function () {
|
||||||
initializeCompaniesCarousel();
|
initializeCompaniesCarousel();
|
||||||
// TODO: useful for news article carousel
|
fetch('../assets/js/carousel-items.json')
|
||||||
// fetch('../assets/js/carousel-items.json')
|
.then(response => response.json())
|
||||||
// .then(response => response.json())
|
.then(data => {
|
||||||
// .then(data => {
|
createCarouselItems(data);
|
||||||
// createCarouselItems(data);
|
initializeCarousel();
|
||||||
// initializeCarousel();
|
})
|
||||||
// })
|
.catch(error => console.error('Error loading JSON:', error));
|
||||||
// .catch(error => console.error('Error loading JSON:', error));
|
|
||||||
});
|
});
|
||||||
|
|
||||||
function createCarouselItems(items) {
|
function createCarouselItems(items) {
|
||||||
|
|
Loading…
Reference in New Issue