setTimeout(function () {
document.querySelector('.left-banner-box').classList.add('slide-in');
document.querySelector('.right-banner-box').classList.add('slide-in');
}, 300);
modal = {
const modal = document.getElementById("imageModal");
const modalImage = document.getElementById("modalImage");
const closeBtn = document.getElementById("closeModal");
const image = document.getElementById("enlargeImage");
// Function to open the modal (only for desktop)
image.onclick = function () {
if (window.innerWidth >= 768) { // Check if the screen width is greater than or equal to 768px
modal.style.display = "block";
modalImage.src = this.src; // Set the source of the enlarged image
}
};
// Function to close the modal
closeBtn.onclick = function () {
modal.style.display = "none";
};
window.onclick = function (event) {
if (event.target == modal) {
modal.style.display = "none";
}
};
}