Skip to content

Quarto mod5 #76

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Jun 27, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update quiz background color
  • Loading branch information
zmx721 committed May 31, 2025
commit 55eee820066d3d5c4d7001e0356ec39dc8d2b9b6
4 changes: 2 additions & 2 deletions src/quiz.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ function generateQuiz(containerId, title, question, options, correctAnswers) {
const emojis = ["🍀", "🎉", "🌈", "🚀", "🌟", "✨", "💯"];
const emoji = emojis[~~(Math.random() * emojis.length)];
messageBody.innerHTML = `<strong style="color: #0E76BC !important; font-size: 16px">Correct! &nbsp;${emoji}</strong><br>${explanation}`;
messageElement.style.backgroundColor = '#E8FAFD'; // Light background for content
messageElement.style.backgroundColor = '#DBF1FF'; // Light background for content
messageElement.style.borderLeft = '5px solid #0E76BC'; // Left border styling
} else {
messageBody.innerHTML = `<strong style="color: #003366 !important; font-size: 16px;">Incorrect</strong><br>${explanation}`;
messageElement.style.backgroundColor = '#EAEDFA'; // Light background for content
messageElement.style.backgroundColor = '#F0F7FF'; // Light background for content
messageElement.style.borderLeft = '5px solid #003366'; // Left border styling
}

Expand Down