diff --git a/django/templates/play/game/question_host.html b/django/templates/play/game/question_host.html index 6ebba13..ae4f894 100644 --- a/django/templates/play/game/question_host.html +++ b/django/templates/play/game/question_host.html @@ -9,7 +9,7 @@ Spiel verlassen {% endif %} -
+

Frage

{{ question_index|add:1 }}

@@ -30,7 +30,7 @@
{% endif %} {% if request.session.mode != "learn" %} -
+
{% endif %} @@ -70,7 +70,7 @@ bg-gray-500 hover:bg-gray-600 {% endif %} - p-4 rounded-lg text-white transition-colors duration-200 answer-option" + p-4 rounded-lg text-white transition-colors duration-200 answer-option overflow-auto break-words hyphens-auto " data-index="{{ forloop.counter0 }}" {% if request.session.mode == "learn" %} onclick="submitAnswer({{ forloop.counter0 }});" {% endif %}> diff --git a/django/templates/play/game/question_participant.html b/django/templates/play/game/question_participant.html index a0826c9..1fc86e7 100644 --- a/django/templates/play/game/question_participant.html +++ b/django/templates/play/game/question_participant.html @@ -16,7 +16,7 @@

{{ total_questions }}

-

{{ question_data.question }}

+

{{ question_data.question}}

@@ -49,7 +49,7 @@ bg-gray-500 hover:bg-gray-600 {% endif %} - p-4 rounded-lg text-white transition-colors duration-200 answer-option" + p-4 rounded-lg text-white transition-colors duration-200 answer-option overflow-auto break-words hyphens-auto " data-index="{{ forloop.counter0 }}" onclick="submitAnswer({{ forloop.counter0 }});">

{{ option.value }}

@@ -77,7 +77,7 @@ let hasAnswered = false; const joinCode = '{{ quiz_game.join_code }}'; const participantId = '{{ participant.participant_id }}'; - const questionStartTime = {{ start_time }}; + const questionStartTime = Date.now(); const questionDuration = '{{ current_question.time_per_question }}'*1000; //Zeit pro Frage (indviduell eingestellt) const gameSocket = initializeGameSocket(joinCode); diff --git a/django/templates/play/game/score_overview.html b/django/templates/play/game/score_overview.html index 71664fb..db054d7 100644 --- a/django/templates/play/game/score_overview.html +++ b/django/templates/play/game/score_overview.html @@ -11,7 +11,7 @@
{% for option in question_data.options %} -
+
@@ -181,9 +181,12 @@ el.style.transform = 'translateY(20px)'; } }); + try{ + document.getElementById("finish-button").style.display = 'none';} + catch{} // Warten bevor Animation startet - await sleep(1500); // <<< hier die Pause + await sleep(500); // <<< hier die Pause // Transition-Eigenschaft setzen nach Render-Zyklus @@ -200,9 +203,13 @@ if (index === top3.length - 1) { triggerConfetti(); + try{ + + document.getElementById("finish-button").style.display = 'block';} + catch{} } - }, index * 1500); // Zeitversetzt aufdecken + }, index * 1000); // Zeitversetzt aufdecken }); }); });