diff options
author | Grail Finder <wohilas@gmail.com> | 2025-04-19 07:21:49 +0300 |
---|---|---|
committer | Grail Finder <wohilas@gmail.com> | 2025-04-19 07:21:49 +0300 |
commit | 769589c59b9c7c29b11060fe19cec9f0f1ae9603 (patch) | |
tree | ef434e582e164f62a4fd168fd2f1918ab875a416 /components/question.html | |
parent | 1e5faf9b609fa230d763bccdd8520441c5498a15 (diff) |
Diffstat (limited to 'components/question.html')
-rw-r--r-- | components/question.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/components/question.html b/components/question.html index ef4618b..506e450 100644 --- a/components/question.html +++ b/components/question.html @@ -20,8 +20,8 @@ {{.Explanation}} </div> <button - hx-get="/next-question?current_id={{.ID}}" - hx-target="#ancestor" + hx-get="/next-question?current_id={{.ID}}&mixed_id={{.MixedID}}" + hx-target="#question" hx-swap="outerHTML" class="next-button" data-testid="next-button"> @@ -34,7 +34,7 @@ data-testid="option1" hx-post="/answer" hx-vals='{"selected": "0", "question_id": "{{.ID}}"}' - hx-target="#ancestor" + hx-target="#question" hx-swap="innerHTML" class="option-button" > @@ -44,7 +44,7 @@ data-testid="option2" hx-post="/answer" hx-vals='{"selected": "1", "question_id": "{{.ID}}"}' - hx-target="#ancestor" + hx-target="#question" hx-swap="innerHTML" class="option-button" > @@ -54,7 +54,7 @@ data-testid="option3" hx-post="/answer" hx-vals='{"selected": "2", "question_id": "{{.ID}}"}' - hx-target="#ancestor" + hx-target="#question" hx-swap="innerHTML" class="option-button" > @@ -64,7 +64,7 @@ data-testid="option4" hx-post="/answer" hx-vals='{"selected": "3", "question_id": "{{.ID}}"}' - hx-target="#ancestor" + hx-target="#question" hx-swap="innerHTML" class="option-button" > |