Skip to content
This repository has been archived by the owner on Mar 19, 2023. It is now read-only.

Commit

Permalink
Merge pull request #147 from clrxbl/patch-3
Browse files Browse the repository at this point in the history
  • Loading branch information
MiniDigger committed Apr 5, 2022
2 parents 627144b + 4cdceef commit 98df88d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/js/legacy.js
Expand Up @@ -28,6 +28,11 @@ const downloads = {

const submitButton = document.getElementById("submit-quiz");

if (localStorage.getItem("quiz-complete") == "true") {
document.getElementById("quiz").style.display = 'none';
document.getElementById("content").style.display = 'block';
}

let timer;
let counterValue = 0;
let timerSeconds = 0;
Expand Down Expand Up @@ -69,6 +74,7 @@ submitButton.onclick = function() {
timerSeconds = timerSeconds + 5;
setTimer(timerSeconds);
} else {
localStorage.setItem("quiz-complete", "true");
document.getElementById("quiz").style.display = 'none';
document.getElementById("content").style.display = 'block';
}
Expand Down

0 comments on commit 98df88d

Please sign in to comment.