From 8f3d2b1b6ff3cb2378a2ce5403faebaadca61c11 Mon Sep 17 00:00:00 2001 From: Rasmus Date: Fri, 5 May 2023 18:37:52 +0300 Subject: Parandused Former-commit-id: 5f3ba2029e5783e370d2a7808b5ede5448424e14 --- rannak/mangud/partorg/sonaragastik/index.html | 3 ++- rannak/mangud/partorg/sonaragastik/script.js | 11 +++++++++-- rannak/mangud/partorg/sonaragastik/style.css | 5 +++-- 3 files changed, 14 insertions(+), 5 deletions(-) (limited to 'rannak/mangud/partorg/sonaragastik') diff --git a/rannak/mangud/partorg/sonaragastik/index.html b/rannak/mangud/partorg/sonaragastik/index.html index f955058..039f79b 100644 --- a/rannak/mangud/partorg/sonaragastik/index.html +++ b/rannak/mangud/partorg/sonaragastik/index.html @@ -16,7 +16,8 @@

Sõnarägastik

Lahenda sõnarägastik, leia üles kõik 10 sõna
- Peale iga sõna leidmist vajuta "proovi". + Peale iga sõna leidmist vajuta "proovi" + , et see nimekirjas lahendatuna ära märkida.

diff --git a/rannak/mangud/partorg/sonaragastik/script.js b/rannak/mangud/partorg/sonaragastik/script.js index 2e6ffb4..e137e37 100644 --- a/rannak/mangud/partorg/sonaragastik/script.js +++ b/rannak/mangud/partorg/sonaragastik/script.js @@ -4,6 +4,11 @@ document.addEventListener('DOMContentLoaded', () => { }); +// Vars +curZindex = 1; + + + function randomLetters(){ for (let node of document.querySelectorAll("td")) { if (node.textContent != "") continue; @@ -84,10 +89,12 @@ function proovi(){ //console.log("hetkeKlass: ",hetkeKlass); for (let el of dones){ - if (horisontaalis.includes(hetkeKlass)) + if (horisontaalis.includes(hetkeKlass)){ el.classList.add("doneH"); - else + } + else{ el.classList.add("doneV"); + } } //console.log(document.querySelector(".V"+hetkeKlass).classList); diff --git a/rannak/mangud/partorg/sonaragastik/style.css b/rannak/mangud/partorg/sonaragastik/style.css index 4b003d9..7b896aa 100644 --- a/rannak/mangud/partorg/sonaragastik/style.css +++ b/rannak/mangud/partorg/sonaragastik/style.css @@ -96,11 +96,12 @@ button:disabled{ /* Adding classes */ .selected { - background-color: #ECAC76; + background-color: #ECAC76 !important; } .doneV{ - background-color: #284F8F; + /*background-color: #284F8F;*/ + background-color: #C5E17A; } .doneH{ -- cgit v1.2.3