modified: templates/quiz.html
This commit is contained in:
@@ -262,6 +262,15 @@
|
|||||||
<p>Die richtige Antwort ist: <strong>${data.correct_answer}</strong></p>`;
|
<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
|
// Zeige den "Nächste Frage" Button
|
||||||
document.getElementById('nextQuestionBtn').style.display = 'inline-block';
|
document.getElementById('nextQuestionBtn').style.display = 'inline-block';
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user