mobile
This commit is contained in:
@@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user