mirror of
https://github.com/kmitresse/Cards-Rush.git
synced 2026-07-09 13:27:45 +00:00
fix(DevWeb): Import static files
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
let cb = document.querySelectorAll(".close");
|
||||
for (let i = 0; i < cb.length; i++) {
|
||||
cb[i].addEventListener("click", function() {
|
||||
const dia = this.parentNode.parentNode; /* You need to update this part if you change level of close button */
|
||||
dia.style.display = "none";
|
||||
});
|
||||
}
|
||||
|
||||
let mt = document.querySelectorAll(".modal-toggle");
|
||||
for (let i = 0; i < mt.length; i++) {
|
||||
mt[i].addEventListener("click", function() {
|
||||
const targetId = this.getAttribute("data-target");
|
||||
const target = document.querySelector(targetId);
|
||||
target.style.display = "block";
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user