diff options
author | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-11-05 11:16:20 +0100 |
---|---|---|
committer | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-11-05 11:16:20 +0100 |
commit | 7b3aee84638017760f9ec2779e3d513a35be2cc1 (patch) | |
tree | 76d98ed3f87bc6b1b054d87566da877146118245 /play.js | |
parent | e2d9bcabb59b8244cc690958b7354ac2e54899ed (diff) | |
download | votes-for-women-7b3aee84638017760f9ec2779e3d513a35be2cc1.tar.gz |
persistent cards
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -346,6 +346,17 @@ function on_update() { // eslint-disable-line no-unused-vars 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']) { + document.getElementById(id).replaceChildren() + for (let c of view[id] || []) { + let elt = create("div", { + className: `persistent_card ${CARDS[c].type}`, + innerHTML: sub_card_name(null, c) + }) + document.getElementById(id).appendChild(elt) + } + } + action_button("commit_1_button", "+1 Button") action_button("defer", "Defer") action_button("match", "Match") |