modified: templates/quiz_multiplayer.html
This commit is contained in:
@@ -269,11 +269,16 @@ window.onload = function() {
|
|||||||
label.style.display = '';
|
label.style.display = '';
|
||||||
}
|
}
|
||||||
document.getElementById('startPosition').value = getOption('startPosition', 'start');
|
document.getElementById('startPosition').value = getOption('startPosition', 'start');
|
||||||
updateMultiplayerUI();
|
|
||||||
|
|
||||||
// Prüfe, ob MultiplayerPopup existiert und sichtbar ist
|
// Prüfe, ob Namen im LocalStorage sind
|
||||||
const mpPopup = document.getElementById('multiplayerPopup');
|
const names = JSON.parse(localStorage.getItem('quizify_multiplayer_names') || "[]");
|
||||||
if (!mpPopup || mpPopup.style.display === 'none') {
|
if (names.length < 2) {
|
||||||
|
// Popup anzeigen
|
||||||
|
if (document.getElementById('multiplayerPopup')) {
|
||||||
|
document.getElementById('multiplayerPopup').style.display = 'flex';
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
updateMultiplayerUI();
|
||||||
quizifyReady();
|
quizifyReady();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user