diff options
author | Rasmus <rasmus.luha@gmail.com> | 2023-05-05 18:37:52 +0300 |
---|---|---|
committer | Rasmus <rasmus.luha@gmail.com> | 2023-05-05 18:37:52 +0300 |
commit | 8f3d2b1b6ff3cb2378a2ce5403faebaadca61c11 (patch) | |
tree | a0c25f684b13444da069da1063653caa162fe426 /rannak/mangud/partorg/sonaragastik | |
parent | 9a4d6be0ca9cb86ef56acdbf8bcc1fe9f920a19c (diff) |
Parandused
Former-commit-id: 5f3ba2029e5783e370d2a7808b5ede5448424e14
Diffstat (limited to 'rannak/mangud/partorg/sonaragastik')
-rw-r--r-- | rannak/mangud/partorg/sonaragastik/index.html | 3 | ||||
-rw-r--r-- | rannak/mangud/partorg/sonaragastik/script.js | 11 | ||||
-rw-r--r-- | rannak/mangud/partorg/sonaragastik/style.css | 5 |
3 files changed, 14 insertions, 5 deletions
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 @@ <h1>Sõnarägastik</h1> <p>Lahenda sõnarägastik, leia üles kõik 10 sõna <br/> - Peale iga sõna leidmist vajuta <strong>"proovi"</strong>. + Peale iga sõna leidmist vajuta <strong>"proovi"</strong> + , et see nimekirjas lahendatuna ära märkida. </p> 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{ |