summaryrefslogtreecommitdiff
path: root/rannak/mangud/direktor/kone/script.js
diff options
context:
space:
mode:
authorRasmus <rasmus.luha@gmail.com>2023-03-31 19:41:34 +0300
committerRasmus <rasmus.luha@gmail.com>2023-03-31 19:41:34 +0300
commit760e8fff4d4fd71350ddc9b17e85e95a17d4ce8e (patch)
treec7ea657fe7d99852ff3c5ea19ca386d69bd9af55 /rannak/mangud/direktor/kone/script.js
parentc40293acd3a00b20d74cf37823b7efb1b75dec9b (diff)
oops
Diffstat (limited to 'rannak/mangud/direktor/kone/script.js')
-rw-r--r--rannak/mangud/direktor/kone/script.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/rannak/mangud/direktor/kone/script.js b/rannak/mangud/direktor/kone/script.js
new file mode 100644
index 0000000..ba1d77b
--- /dev/null
+++ b/rannak/mangud/direktor/kone/script.js
@@ -0,0 +1,25 @@
+document.addEventListener('DOMContentLoaded', () => {
+ let btn = document.querySelector('.modalButton');
+ btn.click();
+});
+
+
+
+const kone = document.querySelector(".kone");
+kone.addEventListener('input', () => {
+ let koneWordCount = document.querySelector(".kone").innerHTML.split(' ').length;
+
+ if (koneWordCount > 100)
+ moveOnEnable();
+})
+
+
+
+// If Done
+
+function moveOnEnable(){
+ const btn = document.querySelector(".moveOn");
+ btn.disabled = false;
+ btn.onclick = () => location.href = "";
+}
+