Compare commits
3 Commits
feat/fixes
...
main
Author | SHA1 | Date |
---|---|---|
|
00a5a2219f | |
|
036f92ef17 | |
|
91ab0400d6 |
|
@ -1,23 +1,24 @@
|
||||||
const collapsibleButton = document.querySelector("#hamburger-menu");
|
document.addEventListener('DOMContentLoaded', function () {
|
||||||
const menuContent = document.querySelector(".menu-content");
|
const collapsibleButton = document.querySelector(".hamburger-menu");
|
||||||
collapsibleButton.addEventListener("click", function () {
|
const menuContent = document.querySelector(".menu-content");
|
||||||
|
collapsibleButton.addEventListener("click", function () {
|
||||||
menuContent.classList.toggle("active");
|
menuContent.classList.toggle("active");
|
||||||
if (menuContent.style.display === "block") {
|
if (menuContent.style.display === "block") {
|
||||||
menuContent.style.display = "none";
|
menuContent.style.display = "none";
|
||||||
} else {
|
} else {
|
||||||
menuContent.style.display = "block";
|
menuContent.style.display = "block";
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
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