Changes to be committed:
modified: templates/quiz_multiplayer.html
This commit is contained in:
@@ -74,9 +74,12 @@
|
||||
<h2 id="question-text" style="color:#fff;">{{ translations['question_artist'] }}</h2>
|
||||
<input type="hidden" id="device_id" value="">
|
||||
<div class="game-modes" style="margin-bottom:20px;">
|
||||
<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 == 'year' else 'btn-secondary' }}" onclick="switchGameMode('year')">{{ translations['guess_year'] }}</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 == 'year' else 'btn-secondary' }}"
|
||||
onclick="switchGameMode('year')">{{ translations['guess_year'] }}</button>
|
||||
</div>
|
||||
<div class="game-options" style="margin-bottom:20px;">
|
||||
<label>{{ translations['play_duration'] }}:
|
||||
@@ -356,7 +359,7 @@
|
||||
|
||||
function switchGameMode(mode) {
|
||||
// Multiplayer-Daten NICHT löschen, damit Namen erhalten bleiben!
|
||||
window.location.href = `/reset_quiz/{{ playlist_id }}?next_mode=${mode}&local_multiplayer=1`;
|
||||
window.location.href = `/quiz/{{ playlist_id }}?mode=${mode}&local_multiplayer=1`;
|
||||
}
|
||||
|
||||
function setOption(key, value) { localStorage.setItem(key, value); }
|
||||
|
||||
Reference in New Issue
Block a user