diff options
author | Grail Finder (aider) <wohilas@gmail.com> | 2025-04-05 17:56:09 +0300 |
---|---|---|
committer | Grail Finder (aider) <wohilas@gmail.com> | 2025-04-05 17:56:09 +0300 |
commit | ba24de361eb2133d5e014d5796f654c82e6d69cb (patch) | |
tree | d62132c1ba98b3533049e5744ca5253248d63504 /components | |
parent | 96441a431eaca60b1b798e997608812c8be76598 (diff) |
feat: return full Question model in /answer response
Diffstat (limited to 'components')
-rw-r--r-- | components/index.html | 5 |
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}} |