diff options
Diffstat (limited to 'components')
| -rw-r--r-- | components/index.html | 3 | ||||
| -rw-r--r-- | components/question.html | 12 | 
2 files changed, 7 insertions, 8 deletions
diff --git a/components/index.html b/components/index.html index 816fd21..3020e05 100644 --- a/components/index.html +++ b/components/index.html @@ -9,7 +9,7 @@          <script src="https://unpkg.com/htmx.org@2.0.4" integrity="sha384-HGfztofotfshcF7+8n44JQL2oJmowVChPTg48S+jvZoztPfvwD79OC/LTtG6dMp+" crossorigin="anonymous"></script>      </head>      <body> -        <div class="container"> +        <div id="ancestor">              <h1>Mixed Übungen</h1>              <div class="ubung-list">                  {{range .}} @@ -24,7 +24,6 @@                  </p>                  {{end}}              </div> -            <div id="ancestor"></div>          </div>      </body>  </html> 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"          >  | 
