summaryrefslogtreecommitdiff
path: root/rannak/mangud/perenaine/kuulamine
diff options
context:
space:
mode:
Diffstat (limited to 'rannak/mangud/perenaine/kuulamine')
-rw-r--r--rannak/mangud/perenaine/kuulamine/index.html4
-rw-r--r--rannak/mangud/perenaine/kuulamine/script.js11
2 files changed, 11 insertions, 4 deletions
diff --git a/rannak/mangud/perenaine/kuulamine/index.html b/rannak/mangud/perenaine/kuulamine/index.html
index 21a3a6e..607d897 100644
--- a/rannak/mangud/perenaine/kuulamine/index.html
+++ b/rannak/mangud/perenaine/kuulamine/index.html
@@ -164,7 +164,7 @@
<div class="tableWrapper">
<h3 class="minuPlaan">MINU SUKKPÜKSTE HANKIMISE PLAAN:</h3>
- <p>NB: Sisesta vastused nimetavas käänetes.</p>
+ <p>NB: Sisesta vastused nimetavas käändes.</p>
<table class="table table-dark table-striped">
@@ -229,7 +229,7 @@
<td class="toBeEdited firstCheck">Mille</td>
<td class="toBeEdited secCheck">Mille</td>
<td class="toBeEdited thirdCheck">Mille</td>
- <td><strong>Käes!</strong></td>
+ <td class="toBeEdited finalCheck">Mille</td>
</tr>
</table>
</div>
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";
}