fix(api): fixes

This commit is contained in:
2025-11-27 09:47:34 +01:00
parent 4360bb55f7
commit 579209aa69
4 changed files with 53 additions and 30 deletions

View File

@@ -1,3 +1,5 @@
var canPlayCard = false;
function alertMessage(message) {
let newHtml = '';
const alertId = `alert-${Date.now()}`;
@@ -38,7 +40,7 @@ function receiveHandEvent(eventData) {
//Build Hand Container
hand.forEach((card) => {
//Data
const idx = card.idx
const idx = card.idx;
const cardS = card.card;
const cardHtml = `
@@ -157,6 +159,7 @@ function requestCardEvent(eventData) {
const player = eventData.player;
const handElement = $('#card-slide')
handElement.removeClass('inactive');
canPlayCard = true;
}