From ab1b5e77141ed402b41b16346254d512b458767c Mon Sep 17 00:00:00 2001 From: Rasmus Luha Date: Mon, 2 Jan 2023 00:20:24 +0200 Subject: endPage and some starter localStorage --- rannak/mangud/partorg/kuulsused/script.js | 2 +- rannak/mangud/partorg/plakat/main.js | 2 +- rannak/mangud/partorg/sonaragastik/script.js | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) (limited to 'rannak/mangud/partorg') 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"); -- cgit v1.2.3