diff --git a/js/script.js b/js/script.js index 2354ee3..88afb97 100644 --- a/js/script.js +++ b/js/script.js @@ -168,7 +168,7 @@ window.onload = function () { url.innerText = "" }) - document.querySelectorAll("#items").forEach(item => item.addEventListener("click", (e) => { + document.querySelectorAll("#items .item").forEach(item => item.addEventListener("click", (e) => { e.preventDefault() e.target.parentElement.style.pointerEvents = 'none' const disableui = setTimeout((t) => { @@ -182,7 +182,7 @@ window.onload = function () { })) })); - document.querySelectorAll("#ambiance").forEach(item => item.addEventListener("click", (e) => { + document.querySelectorAll("#ambiance .item").forEach(item => item.addEventListener("click", (e) => { e.preventDefault() e.target.parentElement.style.pointerEvents = 'none' const disableui = setTimeout((t) => {