summaryrefslogtreecommitdiff
path: root/rannak/algus/utlused/js/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'rannak/algus/utlused/js/main.js')
-rw-r--r--rannak/algus/utlused/js/main.js13
1 files changed, 6 insertions, 7 deletions
diff --git a/rannak/algus/utlused/js/main.js b/rannak/algus/utlused/js/main.js
index a67b6bd..4262d41 100644
--- a/rannak/algus/utlused/js/main.js
+++ b/rannak/algus/utlused/js/main.js
@@ -76,10 +76,9 @@ if (`${isMobile() ? 'mobile' : 'not mobile'}` == 'not mobile') {
counter++;
console.log("counter:", counter)
if (counter == 6){
- const button = document.querySelector(".btn");
- button.classList.remove('disabled');
- button.setAttribute('aria-disabled', false);
- console.log("done");
+ const btn = document.querySelector(".moveOn");
+ btn.disabled = false;
+ btn.onclick = () => location.href = "../../rolliValik";
}
} // If isCorrectMatchingEnd
} // Drop Func End
@@ -179,9 +178,9 @@ else{
counter++;
console.log("counter:", counter)
if (counter == 6){
- const button = document.querySelector(".btn");
- button.parentElement.classList.remove('btn');
- button.setAttribute('aria-disabled', false);
+ const btn = document.querySelector(".moveOn");
+ btn.disabled = false;
+ btn.onclick = () => location.href = "../../rolliValik";
}
}