diff options
author | Rasmus <rasmus.luha@gmail.com> | 2023-06-07 18:08:07 +0300 |
---|---|---|
committer | Rasmus <rasmus.luha@gmail.com> | 2023-06-07 18:08:07 +0300 |
commit | 562fd4eb2551cf26c19d619bdf00dbd965fb11d5 (patch) | |
tree | 3b0c20572e94b4d1d25b0aeb46594469bfc32188 /rannak/mangud/perenaine/kuulamine/script.js | |
parent | 62caa37da257987c9585ac57ab64bb12ea481d0b (diff) |
logos
Former-commit-id: ae8208f2b601fc90dbf3bcbd976e17ae6fe85f83
Diffstat (limited to 'rannak/mangud/perenaine/kuulamine/script.js')
-rw-r--r-- | rannak/mangud/perenaine/kuulamine/script.js | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/rannak/mangud/perenaine/kuulamine/script.js b/rannak/mangud/perenaine/kuulamine/script.js index 72b8e70..a4dce89 100644 --- a/rannak/mangud/perenaine/kuulamine/script.js +++ b/rannak/mangud/perenaine/kuulamine/script.js @@ -57,7 +57,13 @@ for (let i=0;i < cells.length; i++){ } - // Here Check if Done + + // Here CHECK IF DONE + finalAns = document.querySelector(".finalCheck"); + if (finalAns.textContent.toLowerCase() == "sukkpüksid"); + moveOnEnable(); + + /* if (firsts[0].textContent != '' && firsts[0].textContent == firsts[1].textContent){ if (secs[0].textContent != '' && secs[0].textContent == secs[1].textContent){ @@ -66,6 +72,7 @@ for (let i=0;i < cells.length; i++){ } } + */ @@ -101,6 +108,6 @@ for (let i=0;i < cells.length; i++){ function moveOnEnable(){ const btn = document.querySelector(".moveOn"); btn.disabled = false; - btn.onclick = () => location.href = ""; + btn.onclick = () => location.href = "../ristsona"; } |