This commit is contained in:
2026-05-10 22:10:16 +02:00
parent 9050114508
commit de21aff489
3 changed files with 50 additions and 11 deletions

View File

@@ -1,24 +1,24 @@
document.getElementById("open-fin-modal").addEventListener("click", function() {
document.getElementById("fin-modal").style.visibility = "visible";
document.body.classList.add("modal-open");
if (window.lockBodyScroll) window.lockBodyScroll();
});
document.querySelectorAll(".close-fin-modal").forEach(function(button) {
button.addEventListener("click", function() {
document.getElementById("fin-modal").style.visibility = "hidden";
document.body.classList.remove("modal-open");
if (window.unlockBodyScroll) window.unlockBodyScroll();
});
});
document.getElementById("open-game-modal").addEventListener("click", function() {
document.getElementById("game-modal").style.visibility = "visible";
document.body.classList.add("modal-open");
if (window.lockBodyScroll) window.lockBodyScroll();
});
document.querySelectorAll(".close-game-modal").forEach(function(button) {
button.addEventListener("click", function() {
document.getElementById("game-modal").style.visibility = "hidden";
document.body.classList.remove("modal-open");
if (window.unlockBodyScroll) window.unlockBodyScroll();
});
});