Skip to content

Commit

Permalink
Try to fix #8
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyEye-FAST committed Jul 11, 2024
1 parent 66be6d4 commit f166aae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions static/js/quiz.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ $(document).ready(function () {
const correctAnswer = questions[currentKey].translation;

if (input === correctAnswer) {
$(".box").css("background-color", "#79b851");

if (currentQuestionIndex === questionKeys.length - 1) {
setTimeout(showSummary, delayBetweenQuestions);
} else {
Expand Down

0 comments on commit f166aae

Please sign in to comment.