From 562fd4eb2551cf26c19d619bdf00dbd965fb11d5 Mon Sep 17 00:00:00 2001 From: Rasmus Date: Wed, 7 Jun 2023 18:08:07 +0300 Subject: logos Former-commit-id: ae8208f2b601fc90dbf3bcbd976e17ae6fe85f83 --- rannak/mangud/perenaine/kuulamine/index.html | 4 ++-- rannak/mangud/perenaine/kuulamine/script.js | 11 +++++++++-- rannak/mangud/perenaine/ristsona/script.js | 5 ++++- 3 files changed, 15 insertions(+), 5 deletions(-) (limited to 'rannak/mangud/perenaine') 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 @@

MINU SUKKPÜKSTE HANKIMISE PLAAN:

-

NB: Sisesta vastused nimetavas käänetes.

+

NB: Sisesta vastused nimetavas käändes.

@@ -229,7 +229,7 @@ - +
Mille Mille MilleKäes!Mille
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"; } diff --git a/rannak/mangud/perenaine/ristsona/script.js b/rannak/mangud/perenaine/ristsona/script.js index 1416897..33d058e 100644 --- a/rannak/mangud/perenaine/ristsona/script.js +++ b/rannak/mangud/perenaine/ristsona/script.js @@ -202,7 +202,7 @@ enterSubmit() function moveOnEnable(){ - message("Tubli, täitsid ristsõna. Siin on Kartulisalati Retsept", "green"); + message("Tubli, täitsid ristsõna. Siin on Kartulisalati Retsept", "green"); const btn = document.querySelector(".moveOn"); btn.disabled = false; @@ -224,8 +224,11 @@ function moveOnEnable(){ // Remove left and right part leftPart.classList.remove("text-white"); + leftPart.style.color = "#43464b"; + const rightPart = document.querySelector(".right"); rightPart.classList.remove("text-white"); + rightPart.style.color = "#43464b"; -- cgit v1.2.3