summaryrefslogtreecommitdiff
path: root/rannak/mangud/perenaine/memori/script.js
diff options
context:
space:
mode:
Diffstat (limited to 'rannak/mangud/perenaine/memori/script.js')
-rw-r--r--rannak/mangud/perenaine/memori/script.js9
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 = "";
}