refactor: Move head to tmp

This commit is contained in:
2025-01-24 23:58:28 +03:00
committed by Sweetbread
parent db3eb73bc0
commit 2b5cd9782f
7 changed files with 28 additions and 31 deletions
+26
View File
@@ -0,0 +1,26 @@
(function(window, document, undefined) {
// code that should be taken care of right away
window.onload = init;
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);