Added more logging and some bug fixes
This commit is contained in:
1 parent
6e55209159
commit
7bc9d67544
2 files changed
+29
-8
No files matched your search
+5
-5
@@ -332,7 +332,7 @@
|
||||
<div id="layout">
|
||||
|
||||
<div id="header">
|
||||
YARN 2026 - Spin your story! <span id="room-display"></span>
|
||||
Y.A.R.N. 2026 - Spin a story! - <span id="room-display"></span>
|
||||
</div>
|
||||
|
||||
<div id="main-text">
|
||||
@@ -370,7 +370,7 @@
|
||||
// Get room name from URL
|
||||
const pathParts = window.location.pathname.split('/').filter(p => p);
|
||||
const roomName = pathParts[0] || 'default';
|
||||
document.getElementById('room-display').textContent = ` — Room: ${roomName}`;
|
||||
document.getElementById('room-display').textContent = `Room: ${roomName}`;
|
||||
|
||||
// Get or create player UUID
|
||||
let playerUUID = getCookie('yarn_player_uuid');
|
||||
@@ -746,12 +746,12 @@
|
||||
}
|
||||
|
||||
function startGame() {
|
||||
const scoreLimit = parseInt(document.getElementById('score-limit').value) || 25;
|
||||
const scoreLimit = parseInt(document.getElementById('score-limit').value) || 100;
|
||||
const timeLimit = parseInt(document.getElementById('time-limit').value) || 60;
|
||||
|
||||
socket.emit('startGame', {
|
||||
scoreLimit: Math.max(10, Math.min(100, scoreLimit)),
|
||||
timeLimit: Math.max(15, Math.min(180, timeLimit))
|
||||
scoreLimit: Math.max(10, Math.min(9999, scoreLimit)),
|
||||
timeLimit: Math.max(15, Math.min(600, timeLimit))
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user