summaryrefslogtreecommitdiff
path: root/rannak/mangud/partorg
diff options
context:
space:
mode:
Diffstat (limited to 'rannak/mangud/partorg')
-rw-r--r--rannak/mangud/partorg/kuulsused/script.js2
-rw-r--r--rannak/mangud/partorg/plakat/main.js2
-rw-r--r--rannak/mangud/partorg/sonaragastik/script.js3
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");