add presentation mode: implement presentation logic, QR code support, animated quotes, assets display, and emotes
Some checks failed
Dynamic Branch Deploy / build-and-deploy (push) Failing after 1m33s
Some checks failed
Dynamic Branch Deploy / build-and-deploy (push) Failing after 1m33s
This commit is contained in:
@@ -684,6 +684,21 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
document.getElementById('playerName').value = savedName;
|
||||
}
|
||||
|
||||
// Auto-Join if URL parameter ?room=XYZ is present
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
const roomParam = urlParams.get('room');
|
||||
if (roomParam) {
|
||||
document.getElementById('joinRoomCode').value = roomParam;
|
||||
|
||||
// Wait for WASM to be ready, then auto-join
|
||||
const checkWASM = setInterval(() => {
|
||||
if (wasmReady) {
|
||||
clearInterval(checkWASM);
|
||||
joinRoom();
|
||||
}
|
||||
}, 100);
|
||||
}
|
||||
|
||||
// Load local highscore
|
||||
const highscore = localStorage.getItem('escape_local_highscore') || 0;
|
||||
const hsElement = document.getElementById('localHighscore');
|
||||
|
||||
Reference in New Issue
Block a user