Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
15 changes: 11 additions & 4 deletions media/js/src/simulations/simulation1/multipleChoiceQuestion.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,19 @@ export const MultipleChoiceQuestion = ({
disabled={isAnswered || selectedOption === null}
onClick={handleSubmit}>Submit</button>
{isAnswered && (
<div className="mt-3"
style={answerStyle} id="feedback">
{/* eslint-disable-next-line max-len */}
{isCorrect ? correctFeedback : incorrectFeedbackMap[selectedOption]}
<div className={
`form-check mt-3 mb-3
${isCorrect ? 'text-success' : 'text-danger'}`}
id="feedback" role="alert">
{isCorrect ? correctFeedback
: incorrectFeedbackMap[selectedOption]}
</div>
)}
{isAnswered && !isCorrect && isQualifier && (
<span className="fw-bold form-check mt-3 mb-3">
Let&apos;s scroll up and continue with choice B!
</span>
)}
{isAnswered && !isCorrect && !isQualifier && (
<div className="mt-3">
<button
Expand Down
9 changes: 0 additions & 9 deletions media/js/src/simulations/simulation1/questionsData.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,28 +144,19 @@ export const questionsData = [
(meaning greater than or equal to),
the alternative hypothesis must be <strong> less than </strong>
not <strong> greater than.</strong>
<div className="fw-bold">
Let&apos;s scroll up and continue with choice B!
</div>
</span>
),
1: (
<span>
Let’s try again! You correctly identified that we do not divide the
significance level by two in a single-sided alternative hypothesis.
<div className="fw-bold">
Let&apos;s scroll up and continue with choice B!
</div>
</span>
),
2: (
<span>
Let’s try again! You correctly identified the alternative
hypothesis, but remember, in a two-sided hypothesis, we divide the
significance level by two.
<div className="fw-bold">
Let&apos;s scroll up and continue with choice B!
</div>
</span>
),
},
Expand Down