Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
RasperRevision authored Mar 17, 2024
1 parent 5db3e8c commit 12a9cdc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fill-in-the-blank/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ <h3 class="mb-4">Complete the quotation</h3>
const userGuess = removePunctuation(inputElement.value.trim());
const actualQuote = shuffledQuotes[currentQuoteIndex].quote;
resultElement.textContent = (userGuess.toLowerCase() === removePunctuation(actualQuote.toLowerCase())) ? "Correct!" : "Incorrect. The correct quote is: " + actualQuote;
resultElement.classList.add((userGuess.toLowerCase() === removePunctuation(actualQuote.toLowerCase())) ? 'alert-success' : 'alert-danger');
submitButton.classList.add('d-none');
nextButton.classList.remove('d-none');
}
Expand Down

0 comments on commit 12a9cdc

Please sign in to comment.