menjava domene

This commit is contained in:
2026-05-09 22:09:03 +02:00
parent e60826b8d9
commit 6e9efd2dbc
9 changed files with 178 additions and 12 deletions

19
scripts/extras.js Normal file
View File

@@ -0,0 +1,19 @@
document.getElementById("open-fin-modal").addEventListener("click", function() {
document.getElementById("fin-modal").style.visibility = "visible";
});
document.querySelectorAll(".close-fin-modal").forEach(function(button) {
button.addEventListener("click", function() {
document.getElementById("fin-modal").style.visibility = "hidden";
});
});
document.getElementById("open-game-modal").addEventListener("click", function() {
document.getElementById("game-modal").style.visibility = "visible";
});
document.querySelectorAll(".close-game-modal").forEach(function(button) {
button.addEventListener("click", function() {
document.getElementById("game-modal").style.visibility = "hidden";
});
});