Skip to content

Commit

Permalink
Updated and finished question bank
Browse files Browse the repository at this point in the history
  • Loading branch information
LukePng committed Dec 20, 2024
1 parent b23145b commit b2f1bc7
Show file tree
Hide file tree
Showing 6 changed files with 546 additions and 790 deletions.
2 changes: 1 addition & 1 deletion src/game1/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function showWrongQuestion(index) {
const wrongQuestion = wrongQuestions[index];
document.getElementById('wrong-question-number').textContent = `Question ${wrongQuestion.questionNumber}`;
document.getElementById('wrong-question-text').textContent = wrongQuestion.question;
document.getElementById('wrong-question-explanation').textContent = `Explanation: ${wrongQuestion.explanation}`;
// document.getElementById('wrong-question-explanation').textContent = `Explanation: ${wrongQuestion.explanation}`;
document.getElementById('wrong-question-choice').textContent = `Your Choice: ${wrongQuestion.selectedAnswer}`;
document.getElementById('show-right-answer').textContent = `Right Answer: ${wrongQuestion.correctAnswer}`

Expand Down
12 changes: 7 additions & 5 deletions src/game1/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,14 @@ body {
margin: 5px 20px;
border:solid;
text-align: center;
background-color: #e0e0e0;
}

.option-container:hover {
background-color: #d0d0d0;
}


.option-image {
width: 100%;
height: 140px;
Expand All @@ -69,11 +75,9 @@ body {
width: 100%;
padding: 10px;
font-size: 16px;
background-color: #e0e0e0;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s;
box-sizing: border-box;
word-wrap: break-word;
white-space: normal;
Expand All @@ -82,9 +86,7 @@ body {
min-height: 40px;
}

.option:hover {
background-color: #d0d0d0;
}



/* For displaying of score and combo */
Expand Down
Loading

0 comments on commit b2f1bc7

Please sign in to comment.