From f9637b6428808a580b42d66e6e47b4ff25a04b12 Mon Sep 17 00:00:00 2001 From: LinlyBoi Date: Mon, 4 Dec 2023 12:01:40 +0200 Subject: [PATCH] Finish quiz --- index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.js b/index.js index eef6d80..b1d7718 100644 --- a/index.js +++ b/index.js @@ -26,7 +26,12 @@ function initQuiz() { var quizScreen = document.getElementById("quizScreen"); quizScreen.style.display = "block"; } +function finishQuiz() { + var quizScreen = document.getElementById("quizScreen"); + quizScreen.style.display = "none"; +} function initScore() { + finishQuiz(); const user = JSON.parse(localStorage.getItem("studData")); var sInfoName = document.getElementById("sInfoName"); var sInfoId = document.getElementById("sInfoId");