From 760e8fff4d4fd71350ddc9b17e85e95a17d4ce8e Mon Sep 17 00:00:00 2001 From: Rasmus Date: Fri, 31 Mar 2023 19:41:34 +0300 Subject: oops --- rannak/mangud/direktor/kone/script.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 rannak/mangud/direktor/kone/script.js (limited to 'rannak/mangud/direktor/kone/script.js') 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 = ""; +} + -- cgit v1.2.3