modified: templates/quiz.html
This commit is contained in:
@@ -5,89 +5,208 @@
|
|||||||
<!-- Spotify Web Playback SDK -->
|
<!-- Spotify Web Playback SDK -->
|
||||||
<script src="https://sdk.scdn.co/spotify-player.js"></script>
|
<script src="https://sdk.scdn.co/spotify-player.js"></script>
|
||||||
<style>
|
<style>
|
||||||
/* Dark, modern theme for the quiz page */
|
* {
|
||||||
:root{
|
margin: 0;
|
||||||
--bg:#0f1113;
|
padding: 0;
|
||||||
--card:#121416;
|
box-sizing: border-box;
|
||||||
--muted:#9aa3a8;
|
|
||||||
--accent:#1DB954;
|
|
||||||
--accent-strong:#17c24a;
|
|
||||||
--danger:#f44336;
|
|
||||||
--success:#4CAF50;
|
|
||||||
--glass: rgba(255,255,255,0.03);
|
|
||||||
--radius:14px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
html,body{height:100%;}
|
|
||||||
body {
|
body {
|
||||||
margin:0;
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||||
padding:24px;
|
background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1419 100%);
|
||||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
|
color: #e0e0e0;
|
||||||
background: linear-gradient(180deg, #070708 0%, #0b0c0e 100%);
|
min-height: 100vh;
|
||||||
color:#e6eef1;
|
padding: 20px;
|
||||||
display:flex;
|
display: flex;
|
||||||
align-items:flex-start;
|
flex-direction: column;
|
||||||
justify-content:center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
.quiz-container {
|
||||||
.quiz-viewport{
|
max-width: 900px;
|
||||||
width:100%;
|
width: 100%;
|
||||||
max-width:980px;
|
background: rgba(25, 30, 45, 0.95);
|
||||||
background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
|
border-radius: 20px;
|
||||||
border-radius:18px;
|
padding: 40px;
|
||||||
padding:28px;
|
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
|
||||||
box-shadow: 0 6px 30px rgba(2,6,23,0.6);
|
backdrop-filter: blur(10px);
|
||||||
backdrop-filter: blur(6px);
|
border: 1px solid rgba(255, 255, 255, 0.05);
|
||||||
}
|
}
|
||||||
|
.header-section {
|
||||||
/* header area */
|
text-align: center;
|
||||||
.quiz-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
|
margin-bottom: 30px;
|
||||||
.quiz-header .left{display:flex;align-items:center;gap:12px}
|
padding-bottom: 20px;
|
||||||
.back-link{background:transparent;border:1px solid rgba(255,255,255,0.06);color:var(--muted);padding:8px 12px;border-radius:10px;text-decoration:none}
|
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
||||||
.back-link:hover{border-color:rgba(255,255,255,0.12);color:#fff}
|
|
||||||
|
|
||||||
/* progress and score */
|
|
||||||
.meta{display:flex;gap:16px;align-items:center;color:var(--muted);font-size:0.95rem}
|
|
||||||
|
|
||||||
/* question */
|
|
||||||
h2#question-text{font-size:1.7rem;margin:6px 0 14px;color:#fff}
|
|
||||||
|
|
||||||
.game-modes{display:flex;gap:10px;justify-content:center;margin-bottom:18px;flex-wrap:wrap}
|
|
||||||
.btn{padding:10px 16px;border-radius:12px;border:none;cursor:pointer;font-weight:600}
|
|
||||||
.btn:not(.btn-danger){background:var(--glass);color:#dff3e6;border:1px solid rgba(255,255,255,0.04)}
|
|
||||||
.btn:hover{transform:translateY(-1px)}
|
|
||||||
.btn-success{background:linear-gradient(180deg,var(--accent),var(--accent-strong));color:#08120a}
|
|
||||||
.btn-secondary{background:transparent;color:var(--muted);border:1px solid rgba(255,255,255,0.04)}
|
|
||||||
.btn-danger{background:transparent;color:var(--danger);border:1px solid rgba(244,67,54,0.12)}
|
|
||||||
|
|
||||||
.game-options{display:flex;gap:12px;justify-content:center;margin-bottom:18px;flex-wrap:wrap}
|
|
||||||
select{background:transparent;color:var(--muted);border:1px solid rgba(255,255,255,0.04);padding:8px 10px;border-radius:10px}
|
|
||||||
|
|
||||||
.controls{text-align:center;margin:18px 0}
|
|
||||||
|
|
||||||
input[type="text"], input[type="number"]{
|
|
||||||
width:min(72%,520px);
|
|
||||||
padding:12px 14px;border-radius:12px;border:1px solid rgba(255,255,255,0.04);background:rgba(255,255,255,0.02);color:#e6eef1;font-size:1rem;outline:none
|
|
||||||
}
|
}
|
||||||
|
.progress-info {
|
||||||
.search-results{margin-top:8px;max-height:260px;overflow:auto;border-radius:10px;background:var(--card);border:1px solid rgba(255,255,255,0.03);display:none}
|
display: flex;
|
||||||
.search-item{padding:10px 12px;border-bottom:1px solid rgba(255,255,255,0.02);cursor:pointer;color:#dbe7e9}
|
justify-content: space-around;
|
||||||
.search-item:hover{background:rgba(255,255,255,0.02)}
|
align-items: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
.result-container{margin:18px auto;padding:16px;border-radius:12px;text-align:center;display:none;max-width:720px}
|
gap: 15px;
|
||||||
.result-container.correct{background:linear-gradient(180deg, rgba(6,58,6,0.6), rgba(6,58,6,0.45));border:1px solid rgba(76,175,80,0.18)}
|
margin-bottom: 20px;
|
||||||
.result-container.incorrect{background:linear-gradient(180deg, rgba(58,6,6,0.6), rgba(58,6,6,0.45));border:1px solid rgba(244,67,54,0.12)}
|
padding: 15px;
|
||||||
|
background: rgba(29, 185, 84, 0.1);
|
||||||
.result-container img{width:84px;border-radius:8px;margin-top:10px}
|
border-radius: 15px;
|
||||||
.result-container a{color:var(--accent);text-decoration:none;font-weight:600}
|
border: 1px solid rgba(29, 185, 84, 0.3);
|
||||||
|
}
|
||||||
.hint-container{color:var(--muted);text-align:center;margin-top:16px}
|
.progress-item {
|
||||||
|
text-align: center;
|
||||||
/* responsive */
|
}
|
||||||
@media (max-width:700px){
|
.progress-label {
|
||||||
.quiz-viewport{padding:16px}
|
font-size: 0.85em;
|
||||||
input[type="text"]{width:92%}
|
color: #999;
|
||||||
.game-modes{gap:8px}
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 1px;
|
||||||
|
}
|
||||||
|
.progress-value {
|
||||||
|
font-size: 1.5em;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #1DB954;
|
||||||
|
margin-top: 5px;
|
||||||
|
}
|
||||||
|
.controls {
|
||||||
|
margin: 25px 0;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.btn {
|
||||||
|
padding: 12px 24px;
|
||||||
|
margin: 5px;
|
||||||
|
background: linear-gradient(135deg, #1DB954 0%, #1ed760 100%);
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
border-radius: 25px;
|
||||||
|
cursor: pointer;
|
||||||
|
font-size: 1em;
|
||||||
|
font-weight: 600;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
box-shadow: 0 4px 15px rgba(29, 185, 84, 0.3);
|
||||||
|
text-decoration: none;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
.btn:hover {
|
||||||
|
transform: translateY(-2px);
|
||||||
|
box-shadow: 0 6px 20px rgba(29, 185, 84, 0.5);
|
||||||
|
}
|
||||||
|
.btn-secondary {
|
||||||
|
background: linear-gradient(135deg, #535353 0%, #6b6b6b 100%);
|
||||||
|
box-shadow: 0 4px 15px rgba(83, 83, 83, 0.3);
|
||||||
|
}
|
||||||
|
.btn-secondary:hover {
|
||||||
|
box-shadow: 0 6px 20px rgba(83, 83, 83, 0.5);
|
||||||
|
}
|
||||||
|
.btn-success {
|
||||||
|
background: linear-gradient(135deg, #4CAF50 0%, #66bb6a 100%);
|
||||||
|
box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
|
||||||
|
}
|
||||||
|
.btn-danger {
|
||||||
|
background: linear-gradient(135deg, #f44336 0%, #e57373 100%);
|
||||||
|
box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
|
||||||
|
}
|
||||||
|
.game-modes {
|
||||||
|
margin: 25px 0;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 10px;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
.search-results {
|
||||||
|
margin-top: 15px;
|
||||||
|
max-height: 250px;
|
||||||
|
overflow-y: auto;
|
||||||
|
background: rgba(15, 20, 35, 0.9);
|
||||||
|
border: 1px solid rgba(29, 185, 84, 0.3);
|
||||||
|
border-radius: 12px;
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.search-item {
|
||||||
|
padding: 12px 15px;
|
||||||
|
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.2s ease;
|
||||||
|
color: #e0e0e0;
|
||||||
|
}
|
||||||
|
.search-item:hover {
|
||||||
|
background: rgba(29, 185, 84, 0.2);
|
||||||
|
padding-left: 20px;
|
||||||
|
}
|
||||||
|
.result-container {
|
||||||
|
margin: 25px 0;
|
||||||
|
padding: 20px;
|
||||||
|
border-radius: 15px;
|
||||||
|
text-align: center;
|
||||||
|
display: none;
|
||||||
|
animation: slideIn 0.3s ease;
|
||||||
|
}
|
||||||
|
@keyframes slideIn {
|
||||||
|
from { opacity: 0; transform: translateY(-10px); }
|
||||||
|
to { opacity: 1; transform: translateY(0); }
|
||||||
|
}
|
||||||
|
.correct {
|
||||||
|
background: rgba(76, 175, 80, 0.15);
|
||||||
|
border: 2px solid #4CAF50;
|
||||||
|
}
|
||||||
|
.incorrect {
|
||||||
|
background: rgba(244, 67, 54, 0.15);
|
||||||
|
border: 2px solid #f44336;
|
||||||
|
}
|
||||||
|
input[type="text"], input[type="number"], select {
|
||||||
|
padding: 14px 20px;
|
||||||
|
width: 100%;
|
||||||
|
max-width: 400px;
|
||||||
|
border: 2px solid rgba(29, 185, 84, 0.3);
|
||||||
|
background: rgba(15, 20, 35, 0.6);
|
||||||
|
color: #e0e0e0;
|
||||||
|
border-radius: 25px;
|
||||||
|
font-size: 16px;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
input[type="text"]:focus, input[type="number"]:focus, select:focus {
|
||||||
|
border-color: #1DB954;
|
||||||
|
box-shadow: 0 0 15px rgba(29, 185, 84, 0.4);
|
||||||
|
}
|
||||||
|
h2 {
|
||||||
|
color: #ffffff;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 2em;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
|
||||||
|
}
|
||||||
|
.hint-container {
|
||||||
|
margin: 20px 0;
|
||||||
|
font-style: italic;
|
||||||
|
color: #999;
|
||||||
|
text-align: center;
|
||||||
|
padding: 10px;
|
||||||
|
background: rgba(255, 255, 255, 0.03);
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
.game-options {
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 25px;
|
||||||
|
padding: 20px;
|
||||||
|
background: rgba(15, 20, 35, 0.5);
|
||||||
|
border-radius: 15px;
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.05);
|
||||||
|
}
|
||||||
|
.game-options label {
|
||||||
|
margin: 0 15px;
|
||||||
|
color: #b0b0b0;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
.game-options select {
|
||||||
|
max-width: 150px;
|
||||||
|
margin: 5px;
|
||||||
|
}
|
||||||
|
@media (max-width: 600px) {
|
||||||
|
.quiz-container {
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
input[type="text"], input[type="number"] {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.progress-info {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<script>
|
<script>
|
||||||
@@ -281,13 +400,15 @@
|
|||||||
|
|
||||||
// Song-Infos ergänzen
|
// Song-Infos ergänzen
|
||||||
resultContainer.innerHTML += `
|
resultContainer.innerHTML += `
|
||||||
<div style="margin-top:10px;">
|
<div style="margin-top:20px; padding:20px; background:rgba(15,20,35,0.8); border-radius:15px; border:1px solid rgba(29,185,84,0.3);">
|
||||||
<img src="{{ track.album.images[0].url }}" alt="Cover" style="width:80px;border-radius:8px;"><br>
|
<img src="{{ track.album.images[0].url }}" alt="Cover" style="width:120px; height:120px; border-radius:12px; margin-bottom:15px; box-shadow:0 4px 15px rgba(0,0,0,0.5);"><br>
|
||||||
<strong>${i18n.song}:</strong> {{ track.name }}<br>
|
<div style="text-align:left; display:inline-block; margin-top:10px;">
|
||||||
<strong>${i18n.artist}:</strong> {{ track.artists[0].name }}<br>
|
<p style="margin:8px 0;"><strong style="color:#1DB954;">${i18n.song || 'Song'}:</strong> <span style="color:#e0e0e0;">{{ track.name }}</span></p>
|
||||||
<strong>${i18n.album}:</strong> {{ track.album.name }}<br>
|
<p style="margin:8px 0;"><strong style="color:#1DB954;">${i18n.artist || 'Artist'}:</strong> <span style="color:#e0e0e0;">{{ track.artists[0].name }}</span></p>
|
||||||
<strong>${i18n.year}:</strong> {{ track.album.release_date[:4] }}<br>
|
<p style="margin:8px 0;"><strong style="color:#1DB954;">${i18n.album || 'Album'}:</strong> <span style="color:#e0e0e0;">{{ track.album.name }}</span></p>
|
||||||
<a href="{{ track.external_urls.spotify }}" target="_blank" style="color:#1DB954;">${i18n.open_on_spotify}</a>
|
<p style="margin:8px 0;"><strong style="color:#1DB954;">${i18n.year || 'Year'}:</strong> <span style="color:#e0e0e0;">{{ track.album.release_date[:4] }}</span></p>
|
||||||
|
<a href="{{ track.external_urls.spotify }}" target="_blank" style="display:inline-block; margin-top:10px; padding:8px 16px; background:linear-gradient(135deg, #1DB954 0%, #1ed760 100%); color:#fff; text-decoration:none; border-radius:20px; font-weight:600; transition:all 0.3s ease;">${i18n.open_on_spotify || 'Open on Spotify'}</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
@@ -317,75 +438,90 @@ window.onload = function() {
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div style="text-align:center; margin-bottom: 10px;">
|
<div class="quiz-container">
|
||||||
<span id="progressInfo">{{ translations['songs_in_playlist'] }} {{ total_questions }}</span>
|
<!-- Header Section -->
|
||||||
<span id="scoreInfo" style="margin-left:20px;">
|
<div class="header-section">
|
||||||
{{ translations['score'] }}: {{ score }} / {{ answered if answered > 0 else 1 }}
|
<h2 id="question-text">{{ translations['question_artist'] }}</h2>
|
||||||
({{ ((score / (answered if answered > 0 else 1)) * 100) | round(0) if answered > 0 else 0 }}{{ translations['percent'] }})
|
<div class="progress-info">
|
||||||
</span>
|
<div class="progress-item">
|
||||||
</div>
|
<div class="progress-label">{{ translations['songs_in_playlist'] if translations.get('songs_in_playlist') else 'Songs in Playlist' }}</div>
|
||||||
<div style="text-align:center; margin-bottom: 20px;">
|
<div class="progress-value">{{ total_questions }}</div>
|
||||||
<a href="/reset_quiz/{{ playlist_id }}" class="btn btn-danger" style="margin-top:10px;">{{ translations['end_quiz'] }}</a>
|
</div>
|
||||||
</div>
|
<div class="progress-item">
|
||||||
<h2 id="question-text">{{ translations['question_artist'] }}</h2>
|
<div class="progress-label">{{ translations['score'] if translations.get('score') else 'Score' }}</div>
|
||||||
|
<div class="progress-value">{{ score }} / {{ answered if answered > 0 else 1 }}</div>
|
||||||
|
</div>
|
||||||
|
<div class="progress-item">
|
||||||
|
<div class="progress-label">{{ translations['accuracy'] if translations.get('accuracy') else 'Accuracy' }}</div>
|
||||||
|
<div class="progress-value">{{ ((score / (answered if answered > 0 else 1)) * 100) | round(0) if answered > 0 else 0 }}%</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- Verstecktes Feld für device_id -->
|
<!-- Verstecktes Feld für device_id -->
|
||||||
<input type="hidden" id="device_id" value="">
|
<input type="hidden" id="device_id" value="">
|
||||||
|
|
||||||
<!-- Spielmodi -->
|
<!-- Spielmodi -->
|
||||||
<div class="game-modes">
|
<div class="game-modes">
|
||||||
<button class="btn {{ 'btn-success' if game_mode == 'artist' else 'btn-secondary' }}" onclick="switchGameMode('artist')">{{ translations['guess_artist'] }}</button>
|
<button class="btn {{ 'btn-success' if game_mode == 'artist' else 'btn-secondary' }}" onclick="switchGameMode('artist')">{{ translations['guess_artist'] }}</button>
|
||||||
<button class="btn {{ 'btn-success' if game_mode == 'title' else 'btn-secondary' }}" onclick="switchGameMode('title')">{{ translations['guess_title'] }}</button>
|
<button class="btn {{ 'btn-success' if game_mode == 'title' else 'btn-secondary' }}" onclick="switchGameMode('title')">{{ translations['guess_title'] }}</button>
|
||||||
<button class="btn {{ 'btn-success' if game_mode == 'year' else 'btn-secondary' }}" onclick="switchGameMode('year')">{{ translations['guess_year'] }}</button>
|
<button class="btn {{ 'btn-success' if game_mode == 'year' else 'btn-secondary' }}" onclick="switchGameMode('year')">{{ translations['guess_year'] }}</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Optionen für das Spiel -->
|
<!-- Optionen für das Spiel -->
|
||||||
<div class="game-options">
|
<div class="game-options">
|
||||||
<label>{{ translations['play_duration'] }}:
|
<label>{{ translations['play_duration'] if translations.get('play_duration') else 'Play Duration' }}:
|
||||||
<select id="playDuration" onchange="setOption('playDuration', this.value)">
|
<select id="playDuration" onchange="setOption('playDuration', this.value)">
|
||||||
<option value="10">10s</option>
|
<option value="10">10s</option>
|
||||||
<option value="15">15s</option>
|
<option value="15">15s</option>
|
||||||
<option value="30">30s</option>
|
<option value="30">30s</option>
|
||||||
<option value="0" selected>{{ translations['unlimited'] }}</option>
|
<option value="0" selected>{{ translations['unlimited'] if translations.get('unlimited') else 'Unlimited' }}</option>
|
||||||
</select>
|
</select>
|
||||||
</label>
|
</label>
|
||||||
<label style="margin-left:20px;">{{ translations['start_position'] }}:
|
<label style="margin-left:20px;">{{ translations['start_position'] if translations.get('start_position') else 'Start Position' }}:
|
||||||
<select id="startPosition" onchange="setOption('startPosition', this.value)">
|
<select id="startPosition" onchange="setOption('startPosition', this.value)">
|
||||||
<option value="start" selected>{{ translations['start'] }}</option>
|
<option value="start" selected>{{ translations['start'] if translations.get('start') else 'Start' }}</option>
|
||||||
<option value="random">{{ translations['random'] }}</option>
|
<option value="random">{{ translations['random'] if translations.get('random') else 'Random' }}</option>
|
||||||
</select>
|
</select>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Player Controls -->
|
<!-- Player Controls -->
|
||||||
<div class="controls" style="text-align: center;">
|
<div class="controls">
|
||||||
<button id="playPauseBtn" class="btn" onclick="togglePlay()">{{ translations['pause'] }}</button>
|
<button id="playPauseBtn" class="btn" onclick="togglePlay()">{{ translations['pause'] if translations.get('pause') else '⏸ Pause' }}</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Antwort-Eingabe -->
|
<!-- Antwort-Eingabe -->
|
||||||
<div style="text-align: center; margin-top: 30px;">
|
<div style="text-align: center; margin-top: 30px;">
|
||||||
<input type="text" id="answerInput" placeholder="{{ translations['input_artist'] }}" oninput="searchTracks()">
|
<input type="text" id="answerInput" placeholder="{{ translations['input_artist'] }}" oninput="searchTracks()">
|
||||||
<button class="btn" onclick="checkAnswer()">{{ translations['answer_button'] }}</button>
|
<button class="btn" onclick="checkAnswer()">{{ translations['answer_button'] }}</button>
|
||||||
|
|
||||||
<!-- Suchergebnisse -->
|
<!-- Suchergebnisse -->
|
||||||
<div id="searchResults" class="search-results"></div>
|
<div id="searchResults" class="search-results"></div>
|
||||||
|
|
||||||
<!-- Ergebnis-Anzeige -->
|
<!-- Ergebnis-Anzeige -->
|
||||||
<div id="resultContainer" class="result-container"></div>
|
<div id="resultContainer" class="result-container"></div>
|
||||||
|
|
||||||
<!-- Nächste Frage Button, wird nach Antwort angezeigt -->
|
<!-- Nächste Frage Button, wird nach Antwort angezeigt -->
|
||||||
<a id="nextQuestionBtn" href="/quiz/{{ playlist_id }}?mode={{ game_mode }}" class="btn" style="display: none;">{{ translations['next_question'] }}</a>
|
<a id="nextQuestionBtn" href="/quiz/{{ playlist_id }}?mode={{ game_mode }}" class="btn" style="display: none;">{{ translations['next_question'] }}</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Hilfe-Text je nach Modus -->
|
<!-- Hilfe-Text je nach Modus -->
|
||||||
<div class="hint-container">
|
<div class="hint-container">
|
||||||
{% if game_mode == 'artist' %}
|
{% if game_mode == 'artist' %}
|
||||||
<p>{{ translations['tip_artist'] }}</p>
|
<p>{{ translations['tip_artist'] if translations.get('tip_artist') else 'Tip: Start typing to search for artists' }}</p>
|
||||||
{% elif game_mode == 'title' %}
|
{% elif game_mode == 'title' %}
|
||||||
<p>{{ translations['tip_title'] }}</p>
|
<p>{{ translations['tip_title'] if translations.get('tip_title') else 'Tip: Start typing to search for song titles' }}</p>
|
||||||
{% elif game_mode == 'year' %}
|
{% elif game_mode == 'year' %}
|
||||||
<p>{{ translations['tip_year'] }}</p>
|
<p>{{ translations['tip_year'] if translations.get('tip_year') else 'Tip: Enter the release year' }}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Navigation -->
|
||||||
|
<div class="controls">
|
||||||
|
<a href="/reset_quiz/{{ playlist_id }}" class="btn btn-danger">{{ translations['end_quiz'] if translations.get('end_quiz') else '🏁 End Quiz' }}</a>
|
||||||
|
<a href="/playlists" class="btn btn-secondary">{{ translations['back_to_playlists'] if translations.get('back_to_playlists') else '⬅️ Back to Playlists' }}</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user