diff --git a/assets/js/logic.js b/assets/js/logic.js index d26f30d..96597d1 100644 --- a/assets/js/logic.js +++ b/assets/js/logic.js @@ -111,6 +111,8 @@ function checkAnswer(choice) { // Function to end the quiz function endQuiz() { choicesElement.innerHTML = ''; + const questionElement = document.getElementById('questions'); + questionElement.classList.add('hide'); endScreenElement.classList.remove('hide'); finalScoreElement.textContent = time; }; @@ -142,4 +144,5 @@ submitButton.addEventListener("click", function () { } window.location.href = 'highscores.html'; -}); \ No newline at end of file +}); +