From 9f0d80bc412bef9c1c1e02b83fc71b78d8b081f4 Mon Sep 17 00:00:00 2001 From: ben8 Date: Sat, 14 Jun 2025 15:14:54 +0200 Subject: [PATCH] =?UTF-8?q?weiterButton=20Fragen-richtig=20=C3=BCberspring?= =?UTF-8?q?en=20und=20#139=20(gel=C3=B6st)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- django/templates/play/game/question_host.html | 10 ++++++++-- django/templates/play/game/question_participant.html | 1 + django/templates/play/game/score_overview.html | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/django/templates/play/game/question_host.html b/django/templates/play/game/question_host.html index ae4f894..41b7ea1 100644 --- a/django/templates/play/game/question_host.html +++ b/django/templates/play/game/question_host.html @@ -1,14 +1,19 @@ {% extends 'base.html' %} {% block content %} -{% if request.session.mode == "learn" %} +
+ {% if request.session.mode == "learn" %} -
{% endif %} + {% endif %} + +

Frage

@@ -153,6 +158,7 @@ optionElement.textContent = `${optionCounts[optionIndex]} Antworten`; } } + function advanceToScores() { // Show correct answers and answer counts diff --git a/django/templates/play/game/question_participant.html b/django/templates/play/game/question_participant.html index 1fc86e7..8f6b018 100644 --- a/django/templates/play/game/question_participant.html +++ b/django/templates/play/game/question_participant.html @@ -89,6 +89,7 @@ data.action === 'show_scores' && data.redirect_url) { window.location.href = data.redirect_url; + submitAnswer( -1 ); } }; diff --git a/django/templates/play/game/score_overview.html b/django/templates/play/game/score_overview.html index db054d7..fad6d1e 100644 --- a/django/templates/play/game/score_overview.html +++ b/django/templates/play/game/score_overview.html @@ -344,7 +344,7 @@ if (antwortRichtig) { 'type': 'next_question', 'host_id': hostId })); - }); + }, { once: true }); } {% endif %} {% endif %}