fix(DevWeb): Import static files

This commit is contained in:
Lucàs
2024-04-05 12:39:01 +02:00
parent c438395a1a
commit 61603ddac6
26 changed files with 36 additions and 170 deletions
@@ -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";
});
}