summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-12-11 15:55:34 +0100
committerTor Andersson <tor@ccxvii.net>2023-12-11 20:26:34 +0100
commit28f9e4a862ce46d00c00b64164e5e0ea7be3e6b4 (patch)
treecce9713ba97eefebe1a31fa5f45e267bcf64115f
parenta4342710ecccbe8c82f9a18d0a6a69f7af867f2a (diff)
downloadvotes-for-women-28f9e4a862ce46d00c00b64164e5e0ea7be3e6b4.tar.gz
Fix indentation.
-rw-r--r--play.js27
1 files changed, 12 insertions, 15 deletions
diff --git a/play.js b/play.js
index 6493559..a0faf1d 100644
--- a/play.js
+++ b/play.js
@@ -8,16 +8,15 @@ const SUF_NAME = "Suffragist"
const OPP_NAME = "Opposition"
const REGION_NAMES = [
- null,
- "West",
- "Plains",
- "South",
- "Midwest",
- "Atlantic & Appalachia",
- "Northeast"
+ null,
+ "West",
+ "Plains",
+ "South",
+ "Midwest",
+ "Atlantic & Appalachia",
+ "Northeast"
]
-
const US_STATES = [
null,
{ code: "AZ", name: "Arizona", region: 1 },
@@ -459,7 +458,7 @@ function build_user_interface() {
})
}
- for (let c = 1; c <= last_card; ++c) {
+ for (let c = 1; c <= last_card; ++c) {
elt = ui.cards[c] = create("div", {
className: `card card_${c} ${CARDS[c].type}`,
my_card: c,
@@ -688,8 +687,6 @@ function layout_cubes(list, xorig, yorig) {
}
function on_update() { // eslint-disable-line no-unused-vars
- console.log("VIEW", view)
-
switch (player) {
case SUF_NAME: ui.favicon.href = "images/badge1.png"; break
case OPP_NAME: ui.favicon.href = "images/badge5.png"; break
@@ -736,7 +733,7 @@ function on_update() { // eslint-disable-line no-unused-vars
document.getElementById("states_draw").replaceChildren()
document.getElementById("strategy_draw").replaceChildren()
- if (view.hand.length) {
+ if (view.hand.length) {
document.getElementById("hand_panel").classList.remove("hide")
for (let c of view.hand)
document.getElementById("hand").appendChild(ui.cards[c])
@@ -876,19 +873,19 @@ function on_update() { // eslint-disable-line no-unused-vars
action_button("match", "Match")
action_button("supersede", "Supersede")
- action_button("draw", "Draw")
- action_button("next", "Next")
+ action_button("draw", "Draw")
action_button("buttons", "Buttons")
action_button("move", "Move")
action_button("purple", "Purple")
action_button("yellow", "Yellow")
action_button("roll", "Roll")
action_button("reroll", "Re-roll")
+ action_button("next", "Next")
action_button("end_event", "End Event")
action_button("next_turn", "Next Turn")
action_button("final_voting", "Final Voting")
- action_button("skip", "Skip")
+ action_button("skip", "Skip")
action_button("pass", "Pass")
action_button("done", "Done")
action_button("undo", "Undo")