Merge remote-tracking branch 'distrust/ksenia-fix'
This commit is contained in:
commit
036f92ef17
|
@ -1,3 +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 () {
|
||||||
|
@ -9,15 +10,15 @@ collapsibleButton.addEventListener("click", function () {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
document.addEventListener('DOMContentLoaded', function () {
|
|
||||||
initializeCompaniesCarousel();
|
initializeCompaniesCarousel();
|
||||||
fetch('../assets/js/carousel-items.json')
|
// TODO: useful for news article carousel
|
||||||
.then(response => response.json())
|
// fetch('../assets/js/carousel-items.json')
|
||||||
.then(data => {
|
// .then(response => response.json())
|
||||||
createCarouselItems(data);
|
// .then(data => {
|
||||||
initializeCarousel();
|
// createCarouselItems(data);
|
||||||
})
|
// 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