From 9f5d3616cb0ed7d4c8135482dbe775ced78eb5fe Mon Sep 17 00:00:00 2001 From: Rasmus Luha Date: Sat, 24 Sep 2022 15:28:33 +0300 Subject: =?UTF-8?q?Rists=C3=B5na=20done=20ja=20global=20button=20Fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rannak/mangud/perenaine/memori/script.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'rannak/mangud/perenaine/memori/script.js') 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 = ""; } -- cgit v1.2.3