Merge remote-tracking branch 'distrust/ksenia-fix'

This commit is contained in:
Ryan Heywood 2025-04-08 14:07:30 -04:00
commit 036f92ef17
Signed by: ryan
GPG Key ID: 8E401478A3FBEF72
1 changed files with 19 additions and 18 deletions

View File

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