diff options
author | Rasmus Luha <rasmus.luha@gmail.com> | 2023-01-02 00:20:24 +0200 |
---|---|---|
committer | Rasmus Luha <rasmus.luha@gmail.com> | 2023-01-02 00:20:24 +0200 |
commit | ab1b5e77141ed402b41b16346254d512b458767c (patch) | |
tree | 5d8aaa6bbaa2217d7d74d56b74631e087c21343b /rannak/mangud/uliopilane/utlused/js/main.js | |
parent | 6a9499cea7df279407f61c55d1aa18bc23ff1869 (diff) |
endPage and some starter localStorage
Diffstat (limited to 'rannak/mangud/uliopilane/utlused/js/main.js')
-rw-r--r-- | rannak/mangud/uliopilane/utlused/js/main.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rannak/mangud/uliopilane/utlused/js/main.js b/rannak/mangud/uliopilane/utlused/js/main.js index 1e19210..31b42da 100644 --- a/rannak/mangud/uliopilane/utlused/js/main.js +++ b/rannak/mangud/uliopilane/utlused/js/main.js @@ -78,7 +78,8 @@ if (`${isMobile() ? 'mobile' : 'not mobile'}` == 'not mobile') { if (counter == 6){ const btn = document.querySelector(".moveOn"); btn.disabled = false; - btn.onclick = () => location.href = ""; + localStorage.setItem("roll", "Üliõpilase"); + btn.onclick = () => location.href = "../../../endPage"; } } // If isCorrectMatchingEnd } // Drop Func End |