modified: app.py

modified:   templates/quiz.html
This commit is contained in:
2025-05-17 11:27:08 +02:00
parent 0e5140dc3d
commit e65c08e7b8
2 changed files with 27 additions and 20 deletions

View File

@@ -245,7 +245,8 @@
body: JSON.stringify({
guess: guess,
correct_answer: correctAnswer,
game_mode: currentGameMode
game_mode: currentGameMode,
playlist_id: "{{ playlist_id }}"
})
})
.then(response => response.json())
@@ -283,10 +284,15 @@
window.location.href = `/quiz/{{ playlist_id }}?mode=${mode}`;
}
</script>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div style="text-align:center; margin-bottom: 10px;">
<span id="progressInfo">Frage {{ question_number }} von {{ total_questions }}</span>
<span id="scoreInfo" style="margin-left:20px;">Punkte: {{ score }}</span>
</div>
<div style="text-align:center; margin-bottom: 20px;">
<a href="/playlists" class="btn btn-secondary" style="text-decoration:none;">⬅️ Zurück zur Playlist-Auswahl</a>
<a href="/playlists" class="btn btn-danger" style="margin-top:10px;">Quiz beenden</a>
</div>
<h2 id="question-text">Wer ist der Künstler dieses Songs?</h2>