27 lines
676 B
JavaScript
Raw Normal View History

2025-01-24 23:22:45 +03:00
(function(window, document, undefined) {
2025-01-24 22:59:08 +03:00
2025-01-24 23:22:45 +03:00
// code that should be taken care of right away
2025-01-24 22:59:08 +03:00
2025-01-24 23:22:45 +03:00
window.onload = init;
2025-01-24 22:59:08 +03:00
2025-01-24 23:22:45 +03:00
function init(){
const popupOverlay = document.getElementById("popup-overlay");
const popup = document.getElementById("popup");
const help = document.getElementById("help");
function showPopup() {
popupOverlay.style.display = "block";
}
function hidePopup() {
popupOverlay.style.display = "none";
}
help.addEventListener("click", showPopup);
popupOverlay.addEventListener("click", hidePopup);
popup.addEventListener("click", (event) => event.stopPropagation());
}
})(window, document, undefined);
2025-01-24 22:59:08 +03:00