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/uliopilane/utlused/css/utlused.css | 3 ++- rannak/mangud/uliopilane/utlused/js/main.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'rannak/mangud/uliopilane/utlused') diff --git a/rannak/mangud/uliopilane/utlused/css/utlused.css b/rannak/mangud/uliopilane/utlused/css/utlused.css index 8a226b9..f4a3728 100644 --- a/rannak/mangud/uliopilane/utlused/css/utlused.css +++ b/rannak/mangud/uliopilane/utlused/css/utlused.css @@ -52,7 +52,8 @@ button:disabled{ cursor: pointer !important; transition: all 0.3 ease 0 !important; margin: 3% !important; - font-size: 1.2rem !important; + font-size: 1.05rem !important; + max-width: 10% !important; } .modalButton:hover{ 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 -- cgit v1.2.3