modified: templates/quiz.html

This commit is contained in:
2025-05-17 11:13:06 +02:00
parent af94928f8f
commit 0e5140dc3d

View File

@@ -262,6 +262,15 @@
<p>Die richtige Antwort ist: <strong>${data.correct_answer}</strong></p>`;
}
// Song-Infos ergänzen (du müsstest sie ggf. aus dem Backend mitgeben)
resultContainer.innerHTML += `
<div style="margin-top:10px;">
<img src="{{ track.album.images[0].url }}" alt="Cover" style="width:80px;border-radius:8px;">
<br>
<a href="{{ track.external_urls.spotify }}" target="_blank" style="color:#1DB954;">Auf Spotify öffnen</a>
</div>
`;
// Zeige den "Nächste Frage" Button
document.getElementById('nextQuestionBtn').style.display = 'inline-block';
})