Skip to content
Snippets Groups Projects

Adding pop up

Merged Vishwaa Kannan requested to merge adding-pop-up into main
4 files
+ 62
3
Compare changes
  • Side-by-side
  • Inline
Files
4
+ 15
1
@@ -30,4 +30,18 @@ buttons.forEach(button => {
slides.children[newIndex].dataset.active = true
delete activeSlide.dataset.active
})
})
\ No newline at end of file
})
document.addEventListener("DOMContentLoaded", function() {
showPopup();
});
function showPopup() {
document.getElementById("popup-container").style.display = "block";
document.body.style.overflow = "hidden"; // Disable scrolling
}
function closePopup() {
document.getElementById("popup-container").style.display = "none";
document.body.style.overflow = "auto"; // Enable scrolling
}
Loading