diff options
Diffstat (limited to 'rannak/algus/kaart/js')
-rw-r--r-- | rannak/algus/kaart/js/kaart.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/rannak/algus/kaart/js/kaart.js b/rannak/algus/kaart/js/kaart.js index 5d1a1a3..5224d79 100644 --- a/rannak/algus/kaart/js/kaart.js +++ b/rannak/algus/kaart/js/kaart.js @@ -24,10 +24,7 @@ for (let i = 0; i < riigid.length; i++){ } 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 = "../utlused"; } |