Skip to content

Commit 6431dbc

Browse files
committed
update quiz background color
1 parent 710e461 commit 6431dbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/quiz.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ function generateQuiz(containerId, title, question, options, correctAnswers) {
5656
const emojis = ["🍀", "🎉", "🌈", "🚀", "🌟", "✨", "💯"];
5757
const emoji = emojis[~~(Math.random() * emojis.length)];
5858
messageBody.innerHTML = `<strong style="color: #0E76BC !important; font-size: 16px">Correct! &nbsp;${emoji}</strong><br>${explanation}`;
59-
messageElement.style.backgroundColor = '#E8FAFD'; // Light background for content
59+
messageElement.style.backgroundColor = '#DBF1FF'; // Light background for content
6060
messageElement.style.borderLeft = '5px solid #0E76BC'; // Left border styling
6161
} else {
6262
messageBody.innerHTML = `<strong style="color: #003366 !important; font-size: 16px;">Incorrect</strong><br>${explanation}`;
63-
messageElement.style.backgroundColor = '#EAEDFA'; // Light background for content
63+
messageElement.style.backgroundColor = '#F0F7FF'; // Light background for content
6464
messageElement.style.borderLeft = '5px solid #003366'; // Left border styling
6565
}
6666

0 commit comments

Comments
 (0)