26 lines
540 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 popup = document.getElementById("popup");
const help = document.getElementById("help");
function showPopup() {
2025-01-25 22:18:21 +03:00
popup.style.display = "block";
console.log('cat')
2025-01-24 23:22:45 +03:00
}
function hidePopup() {
2025-01-25 22:18:21 +03:00
popup.style.display = "none";
2025-01-24 23:22:45 +03:00
}
help.addEventListener("click", showPopup);
2025-01-25 22:18:21 +03:00
popup.addEventListener("click", hidePopup);
2025-01-24 23:22:45 +03:00
}
})(window, document, undefined);
2025-01-24 22:59:08 +03:00