Skip to content

Commit 42082d0

Browse files
authored
update quiz background color
1 parent 49f8467 commit 42082d0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/quiz.js

Lines changed: 3 additions & 3 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 = '#E7F4FD'; // 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

@@ -85,4 +85,4 @@ function generateQuiz(containerId, title, question, options, correctAnswers) {
8585
const spacing = document.createElement('div');
8686
spacing.style.marginBottom = '30px';
8787
container.appendChild(spacing);
88-
}
88+
}

0 commit comments

Comments
 (0)