diff options
author | Rasmus Luha <rasmus.luha@gmail.com> | 2022-09-24 15:28:33 +0300 |
---|---|---|
committer | Rasmus Luha <rasmus.luha@gmail.com> | 2022-09-24 15:28:33 +0300 |
commit | 9f5d3616cb0ed7d4c8135482dbe775ced78eb5fe (patch) | |
tree | 1bb13f53f049b0613bfb1cb83895a1c07a988479 /rannak/mangud/perenaine/memori/script.js | |
parent | 52b100ad168c10ea44b1df7b89b71ae177ae835a (diff) |
Ristsõna done ja global button Fix
Diffstat (limited to 'rannak/mangud/perenaine/memori/script.js')
-rw-r--r-- | rannak/mangud/perenaine/memori/script.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/rannak/mangud/perenaine/memori/script.js b/rannak/mangud/perenaine/memori/script.js index bcdba13..1e9215b 100644 --- a/rannak/mangud/perenaine/memori/script.js +++ b/rannak/mangud/perenaine/memori/script.js @@ -68,10 +68,7 @@ cards.forEach(card => card.addEventListener('click', flipCard)); // Button func function moveOnEnable(){ - const button = document.querySelector(".btn"); - button.classList.remove('disabled'); - button.setAttribute('aria-disabled', false); - console.log("done"); - - counter = 0; + const btn = document.querySelector(".moveOn"); + btn.disabled = false; + btn.onclick = () => location.href = ""; } |