diff options
author | Grail Finder (aider) <wohilas@gmail.com> | 2025-04-05 17:18:20 +0300 |
---|---|---|
committer | Grail Finder (aider) <wohilas@gmail.com> | 2025-04-05 17:18:20 +0300 |
commit | 9b962f2f61c058145722312b7f6d5a3c5395ceda (patch) | |
tree | eb619adc3a53a1b48d0e34409743c4e81f35b7b5 /components/index.html | |
parent | bdb47236c92c76953b7ee1af95d3605a038058d5 (diff) |
feat: show explanations only after answer selection
Diffstat (limited to 'components/index.html')
-rw-r--r-- | components/index.html | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/components/index.html b/components/index.html index 4b46fbf..411165d 100644 --- a/components/index.html +++ b/components/index.html @@ -14,7 +14,7 @@ {{.Text}} </div> <div id="feedback" data-testid="feedback"> - {{if not .Correct}}Try Again{{else}}{{template "feedback" .}}{{end}} + {{if .Correct}}{{template "feedback" .}}{{else if .Explanation}}{{template "feedback" .}}{{end}} {{if .ShowNext}} <button hx-get="/next-question?current_id={{.ID}}" @@ -26,7 +26,6 @@ </button> {{end}} </div> - {{template "feedback" .}} <div id="options"> <button data-testid="option1" |