From 49ddeaffa0db635136f00b31b94c57c1459b3d6e Mon Sep 17 00:00:00 2001 From: iainp5 Date: Sat, 21 Sep 2024 16:42:52 +0100 Subject: New branch to work on updated display --- play.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'play.js') diff --git a/play.js b/play.js index f003f37..162fdac 100644 --- a/play.js +++ b/play.js @@ -239,7 +239,7 @@ let ui = { dem_hand_count: document.getElementById("role_stat_dem"), com_hand_count: document.getElementById("role_stat_com"), played_card: 0, - events_panel: document.getElementById("events_panel"), + table_panel: document.getElementById("table_panel"), hand_panel: document.getElementById("hand_panel"), turn: document.getElementById("turn-tracker"), round: document.getElementById("action-round-tracker"), @@ -402,18 +402,18 @@ if (view.played_card > 0) { document.getElementById("played_card_panel").classList.add("hide") } -// EVENTS PANEL +// TABLE CARDS PANEL document.getElementById("events").replaceChildren() if (view.table_cards.length > 0) { - document.getElementById("events_panel").classList.remove("hide") + document.getElementById("table_panel").classList.remove("hide") for (let c of view.table_cards) { let card = ui.cards[c] - document.getElementById("events").appendChild(card); + document.getElementById("table_cards").appendChild(card); card.classList.remove("hand_card") card.classList.add('event_card'); } } else { - document.getElementById("events_panel").classList.add("hide") + document.getElementById("table_panel").classList.add("hide") } // OPPONENT HAND -- cgit v1.2.3