modified: templates/quiz.html

This commit is contained in:
2025-05-17 13:47:30 +02:00
parent b710db210f
commit ca552e7bac

View File

@@ -291,10 +291,11 @@
</head>
<body>
<div style="text-align:center; margin-bottom: 10px;">
<span id="progressInfo">Frage {{ question_number }} von {{ total_questions }}</span>
{% set answered = question_number - 1 if question_number > 0 else 0 %}
<span id="progressInfo">Frage {{ answered + 1 }} von {{ total_questions }}</span>
<span id="scoreInfo" style="margin-left:20px;">
Richtige: {{ score }} / {{ question_number }}
({{ ((score / question_number) * 100) | round(0) if question_number > 0 else 0 }}%)
Richtige: {{ score }} / {{ answered if answered > 0 else 1 }}
({{ ((score / (answered if answered > 0 else 1)) * 100) | round(0) if answered > 0 else 0 }}%)
</span>
</div>
<div style="text-align:center; margin-bottom: 20px;">