fix(ui): Websocket

Fixed imports, removed playedCards at trickstart
This commit is contained in:
LQ63
2025-11-27 08:43:20 +01:00
parent c0d872f581
commit 1ca410bc4b
4 changed files with 4 additions and 7 deletions

View File

@@ -144,12 +144,14 @@ function trickEndEvent(eventData) {
}
function newTrickEvent() {
const firstCardContainer = $('#first-card-container');
const emptyHtml = '';
let newHtml = '';
newHtml += `
<img src="/assets/images/cards/1B.png" alt="Blank Card" width="80px" style="border-radius: 6px"/>
`;
firstCardContainer.html(newHtml);
const playedCardsContainer = $('#trick-cards-container')
playedCardsContainer.html(emptyHtml)
}
function requestCardEvent(eventData) {
const player = eventData.player;