feat: implement initial Deno server with WebSocket API, static file serving, and development Docker Compose.
All checks were successful
Build and Push Docker Image / docker (push) Successful in 21s
All checks were successful
Build and Push Docker Image / docker (push) Successful in 21s
This commit is contained in:
@@ -119,7 +119,7 @@ export function wireUi() {
|
||||
localStorage.removeItem("sessionId");
|
||||
localStorage.removeItem("dashboardHintSeen");
|
||||
localStorage.removeItem("lastRoomId");
|
||||
} catch {}
|
||||
} catch { }
|
||||
stopAudioPlayback();
|
||||
state.room = null;
|
||||
if ($nameLobby) {
|
||||
@@ -134,7 +134,7 @@ export function wireUi() {
|
||||
if ($readyChk) {
|
||||
try {
|
||||
$readyChk.checked = false;
|
||||
} catch {}
|
||||
} catch { }
|
||||
}
|
||||
$lobby.classList.remove("hidden");
|
||||
$room.classList.add("hidden");
|
||||
@@ -164,6 +164,16 @@ export function wireUi() {
|
||||
});
|
||||
}
|
||||
|
||||
// Goal/score selection
|
||||
const $goalSelect = document.getElementById("goalSelect");
|
||||
if ($goalSelect) {
|
||||
wire($goalSelect, "change", (e) => {
|
||||
const goal = parseInt(e.target.value, 10);
|
||||
sendMsg({ type: "set_goal", goal });
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
wire($placeBtn, "click", () => {
|
||||
const slot = parseInt($slotSelect.value, 10);
|
||||
sendMsg({ type: "place_guess", slot });
|
||||
@@ -234,7 +244,7 @@ export function wireUi() {
|
||||
dashboardHint.classList.add("hidden");
|
||||
try {
|
||||
localStorage.setItem("dashboardHintSeen", "1");
|
||||
} catch {}
|
||||
} catch { }
|
||||
dashboard.removeEventListener("toggle", hide);
|
||||
dashboard.removeEventListener("click", hide);
|
||||
};
|
||||
@@ -244,6 +254,6 @@ export function wireUi() {
|
||||
if (!localStorage.getItem("dashboardHintSeen")) hide();
|
||||
}, 6000);
|
||||
}
|
||||
} catch {}
|
||||
} catch { }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user