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/partorg | |
parent | 6a9499cea7df279407f61c55d1aa18bc23ff1869 (diff) |
endPage and some starter localStorage
Diffstat (limited to 'rannak/mangud/partorg')
-rw-r--r-- | rannak/mangud/partorg/kuulsused/script.js | 2 | ||||
-rw-r--r-- | rannak/mangud/partorg/plakat/main.js | 2 | ||||
-rw-r--r-- | rannak/mangud/partorg/sonaragastik/script.js | 3 |
3 files changed, 4 insertions, 3 deletions
diff --git a/rannak/mangud/partorg/kuulsused/script.js b/rannak/mangud/partorg/kuulsused/script.js index debb677..e1b994b 100644 --- a/rannak/mangud/partorg/kuulsused/script.js +++ b/rannak/mangud/partorg/kuulsused/script.js @@ -64,6 +64,6 @@ function checkIfAllGood(){ if (rightDone.length == 6) { const btn = document.querySelector(".moveOn"); btn.disabled = false; - btn.onclick = () => location.href = ""; + btn.onclick = () => location.href = "../plakat"; } } diff --git a/rannak/mangud/partorg/plakat/main.js b/rannak/mangud/partorg/plakat/main.js index 6eb9281..925db66 100644 --- a/rannak/mangud/partorg/plakat/main.js +++ b/rannak/mangud/partorg/plakat/main.js @@ -132,7 +132,7 @@ canvas.addEventListener('mousemove', draw); function moveOnEnable(){ const btn = document.querySelector(".moveOn"); btn.disabled = false; - btn.onclick = () => location.href = ""; + btn.onclick = () => location.href = "../sonaragastik"; } function moveOnDisable(){ diff --git a/rannak/mangud/partorg/sonaragastik/script.js b/rannak/mangud/partorg/sonaragastik/script.js index af16488..6151b9e 100644 --- a/rannak/mangud/partorg/sonaragastik/script.js +++ b/rannak/mangud/partorg/sonaragastik/script.js @@ -94,7 +94,8 @@ function proovi(){ function moveOnEnable(){ const btn = document.querySelector(".moveOn"); btn.disabled = false; - btn.onclick = () => location.href = ""; + localStorage.setItem('roll', "Partogi"); + btn.onclick = () => location.href = "../../../endPage"; // submit btn const subButton = document.querySelector(".subBtn"); |