summaryrefslogtreecommitdiff
path: root/rannak/mangud/direktor/loosung/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/direktor/loosung/script.js
parent9a4d6be0ca9cb86ef56acdbf8bcc1fe9f920a19c (diff)
Parandused
Former-commit-id: 5f3ba2029e5783e370d2a7808b5ede5448424e14
Diffstat (limited to 'rannak/mangud/direktor/loosung/script.js')
-rw-r--r--rannak/mangud/direktor/loosung/script.js22
1 files changed, 19 insertions, 3 deletions
diff --git a/rannak/mangud/direktor/loosung/script.js b/rannak/mangud/direktor/loosung/script.js
index 191d743..576ad4d 100644
--- a/rannak/mangud/direktor/loosung/script.js
+++ b/rannak/mangud/direktor/loosung/script.js
@@ -98,14 +98,30 @@ document.querySelector("#loosung").addEventListener("input", () => {CheckIfAllGo
+// BulletPoints eventListener
+bulletBtns = document.querySelectorAll("#sundmus");
+bulletBtns.forEach(element => {
+ element.addEventListener('change', () => CheckIfAllGood());
+});
+
+
+
+
+
+
-// Funcs //
+
+
+
+
+
+
+// Other Funcs //
function CheckIfAllGood(){
//let radioBtn = document.querySelector("input[name='sundmuseValik']:checked");
let loosung = document.querySelector("#loosung");
-
if (document.querySelector("input[name='sundmuseValik']:checked") != null &&
changedArr.length >= 3 && loosung.innerHTML != "Muuda loosung enda omaks!"){
moveOnEnable();
@@ -119,6 +135,6 @@ function CheckIfAllGood(){
function moveOnEnable(){
const btn = document.querySelector(".moveOn");
btn.disabled = false;
- btn.onclick = () => location.href = "";
+ btn.onclick = () => location.href = "../kone";
}