From ec12adace28cee71c152efcdae88017732388a57 Mon Sep 17 00:00:00 2001 From: LinlyBoi Date: Mon, 4 Dec 2023 07:52:58 +0200 Subject: [PATCH] init score and hide form on submit --- index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/index.js b/index.js index 343fb44..db773dc 100644 --- a/index.js +++ b/index.js @@ -7,4 +7,10 @@ function nameSubmit() { startTime: Date.now(), }; localStorage.setItem(studData, JSON.stringify(studData)); + var privacy-violation = document.getElementById("privacy-violation"); + privacy-violation.style.display = "none"; +} + +function initScore() { + const user = JSON.parse(localStorage.getItem("studData")); }