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/script.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'rannak/mangud/partorg/sonaragastik/script.js') 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); -- cgit v1.2.3