diff options
-rw-r--r-- | play.html | 5 | ||||
-rw-r--r-- | play.js | 5 |
2 files changed, 9 insertions, 1 deletions
@@ -81,6 +81,11 @@ <div id="ceausescu_hand" class="panel_body power"></div> </div> +<div id="securitate_panel" class="autohide panel"> + <div id="securiate_header" class="panel_header">Securitate - Democrat Power Struggle Cards</div> + <div id="securitate" class="panel_body"></div> +</div> + <div id="power_discard_panel" class="autohide panel"> <div id="power_discard_header" class="panel_header">Power Struggle Discard</div> <div id="power_discard" class="panel_body power"></div> @@ -374,6 +374,7 @@ const ui = { power_hand: document.getElementById("power_hand"), power_discard: document.getElementById("power_discard"), opp_hand: document.getElementById("opp_hand"), + securitate: document.getElementById("securitate") discard: document.getElementById("discard"), removed: document.getElementById("removed"), persistent: document.getElementById("persistent"), @@ -682,9 +683,11 @@ function on_update() { if (view.opp_hand) for (let c of view.opp_hand) ui.opp_hand.appendChild(ui.cards[c]) + + ui.securitate.replaceChildren() if (view.opp_power_hand) for (let c of view.opp_power_hand) - ui.opp_hand.appendChild(ui.power_cards[c]) + ui.securitate.appendChild(ui.power_cards[c]) ui.ceausescu_hand.replaceChildren() if (view.ceausescu_cards) |