diff options
Diffstat (limited to 'rannak/mangud/partorg/sonaragastik/script.js')
-rw-r--r-- | rannak/mangud/partorg/sonaragastik/script.js | 11 |
1 files changed, 9 insertions, 2 deletions
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); |