diff options
author | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-11-25 20:58:22 +0100 |
---|---|---|
committer | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-11-25 20:58:22 +0100 |
commit | 7ae5ef5d8c6bed300b733c0fafde941fda3a8f3b (patch) | |
tree | c1c444622091ebd5d722eb7da94d252eecb60d87 /play.js | |
parent | 5faa2a308fb60e3c4ad5c9c671641bbd2f41295d (diff) | |
download | votes-for-women-7ae5ef5d8c6bed300b733c0fafde941fda3a8f3b.tar.gz |
nuke discards and out of play stacks
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -671,12 +671,9 @@ function on_update() { // eslint-disable-line no-unused-vars document.getElementById("hand").replaceChildren() document.getElementById("set_aside").replaceChildren() document.getElementById("support_claimed").replaceChildren() - document.getElementById("support_discard").replaceChildren() document.getElementById("opposition_claimed").replaceChildren() - document.getElementById("opposition_discard").replaceChildren() document.getElementById("states_draw").replaceChildren() document.getElementById("strategy_draw").replaceChildren() - document.getElementById("out_of_play").replaceChildren() if (view.hand.length) { document.getElementById("hand_panel").classList.remove("hide") @@ -696,21 +693,14 @@ function on_update() { // eslint-disable-line no-unused-vars for (let c of view.support_claimed) document.getElementById("support_claimed").appendChild(ui.cards[c]) - for (let c of view.support_discard) - document.getElementById("support_discard").appendChild(ui.cards[c]) for (let c of view.opposition_claimed) document.getElementById("opposition_claimed").appendChild(ui.cards[c]) - for (let c of view.opposition_discard) - document.getElementById("opposition_discard").appendChild(ui.cards[c]) for (let c of view.states_draw) document.getElementById("states_draw").appendChild(ui.cards[c]) for (let c of view.strategy_draw) document.getElementById("strategy_draw").appendChild(ui.cards[c]) - for (let c of view.out_of_play) - document.getElementById("out_of_play").appendChild(ui.cards[c]) - for (let id of ['persistent_turn', 'persistent_game', 'persistent_ballot']) { const container = document.getElementById(id) container.replaceChildren() |