summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-11-25 20:58:22 +0100
committerMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-11-25 20:58:22 +0100
commit7ae5ef5d8c6bed300b733c0fafde941fda3a8f3b (patch)
treec1c444622091ebd5d722eb7da94d252eecb60d87 /play.js
parent5faa2a308fb60e3c4ad5c9c671641bbd2f41295d (diff)
downloadvotes-for-women-7ae5ef5d8c6bed300b733c0fafde941fda3a8f3b.tar.gz
nuke discards and out of play stacks
Diffstat (limited to 'play.js')
-rw-r--r--play.js10
1 files changed, 0 insertions, 10 deletions
diff --git a/play.js b/play.js
index cfb83a4..fc16adc 100644
--- a/play.js
+++ b/play.js
@@ -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()