modified: templates/quiz.html
This commit is contained in:
@@ -327,8 +327,10 @@ window.onload = function() {
|
|||||||
}
|
}
|
||||||
document.getElementById('startPosition').value = getOption('startPosition', 'start');
|
document.getElementById('startPosition').value = getOption('startPosition', 'start');
|
||||||
updateMultiplayerUI();
|
updateMultiplayerUI();
|
||||||
// Starte Quiz nur, wenn KEIN Multiplayer-Popup offen ist
|
|
||||||
if (!document.getElementById('multiplayerPopup') || document.getElementById('multiplayerPopup').style.display === 'none') {
|
// Prüfe, ob MultiplayerPopup existiert und sichtbar ist
|
||||||
|
const mpPopup = document.getElementById('multiplayerPopup');
|
||||||
|
if (!mpPopup || mpPopup.style.display === 'none') {
|
||||||
quizifyReady();
|
quizifyReady();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -447,6 +449,13 @@ function quizifyReady() {
|
|||||||
}
|
}
|
||||||
setCorrectAnswer();
|
setCorrectAnswer();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Entferne Multiplayer-Daten, wenn NICHT im lokalen Multiplayer
|
||||||
|
if (!window.location.search.includes('local_multiplayer=1')) {
|
||||||
|
localStorage.removeItem('quizify_multiplayer_names');
|
||||||
|
localStorage.removeItem('quizify_multiplayer_scores');
|
||||||
|
localStorage.removeItem('quizify_multiplayer_current');
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
Reference in New Issue
Block a user