summaryrefslogtreecommitdiff
path: root/rannak/mangud/partorg/sonaragastik/script.js
diff options
context:
space:
mode:
authorRasmus <rasmus.luha@gmail.com>2023-05-05 18:37:52 +0300
committerRasmus <rasmus.luha@gmail.com>2023-05-05 18:37:52 +0300
commit8f3d2b1b6ff3cb2378a2ce5403faebaadca61c11 (patch)
treea0c25f684b13444da069da1063653caa162fe426 /rannak/mangud/partorg/sonaragastik/script.js
parent9a4d6be0ca9cb86ef56acdbf8bcc1fe9f920a19c (diff)
Parandused
Former-commit-id: 5f3ba2029e5783e370d2a7808b5ede5448424e14
Diffstat (limited to 'rannak/mangud/partorg/sonaragastik/script.js')
-rw-r--r--rannak/mangud/partorg/sonaragastik/script.js11
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);