feat: added playlist option
All checks were successful
Build and Push Docker Image / docker (push) Successful in 10s

This commit is contained in:
2025-10-12 15:32:53 +02:00
parent 3f52382cdc
commit 17faca1f46
22 changed files with 28651 additions and 10272 deletions

View File

@@ -129,6 +129,15 @@ export function wireUi() {
sendMsg({ type: 'set_ready', ready: val });
});
// Playlist selection
const $playlistSelect = document.getElementById('playlistSelect');
if ($playlistSelect) {
wire($playlistSelect, 'change', (e) => {
const playlistId = e.target.value;
sendMsg({ type: 'set_playlist', playlist: playlistId });
});
}
wire($placeBtn, 'click', () => {
const slot = parseInt($slotSelect.value, 10);
sendMsg({ type: 'place_guess', slot });