summaryrefslogtreecommitdiff
path: root/components/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'components/index.html')
-rw-r--r--components/index.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/components/index.html b/components/index.html
index d3811b1..31775b0 100644
--- a/components/index.html
+++ b/components/index.html
@@ -17,6 +17,11 @@
{{.Text}}
</div>
<div id="feedback" data-testid="feedback">
+ {{if eq .Status 1}}
+ <div class="feedback">Correct! 🎉</div>
+ {{else if eq .Status 2}}
+ <div class="feedback">Wrong answer! The correct answer was: {{index .Options .CorrectIndex}}</div>
+ {{end}}
{{if ne .Status 0}}
<div>
{{.Explanation}}