menjava domene
This commit is contained in:
19
scripts/extras.js
Normal file
19
scripts/extras.js
Normal 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";
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user