Private
Public Access
1
0

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

This commit is contained in:
Sebastian Unterschütz
2026-04-22 20:00:48 +02:00
parent 568ce516e7
commit e71fd6f0ee
8 changed files with 382 additions and 3 deletions

View File

@@ -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');