vse ploho

This commit is contained in:
2025-01-24 22:59:08 +03:00
parent f671828664
commit bf94146675
4 changed files with 49 additions and 11 deletions
+14
View File
@@ -0,0 +1,14 @@
const popupOverlay = document.getElementById("popup-overlay");
const popup = document.getElementById("popup");
function showPopup() {
popupOverlay.style.display = "block";
}
function hidePopup() {
popupOverlay.style.display = "none";
}
popupOverlay.addEventListener("click", hidePopup);
popup.addEventListener("click", (event) => event.stopPropagation());