From 79bad8cdc623f9277507361e95f00bf60e1c229d Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 17 May 2024 14:27:54 +0200 Subject: america/britain --- data.js | 15 ++- play.css | 10 +- play.html | 12 +-- play.js | 25 ++--- rules.js | 353 ++++++++++++++++++++++++++++++++------------------------------ 5 files changed, 217 insertions(+), 198 deletions(-) diff --git a/data.js b/data.js index 035323b..902705d 100644 --- a/data.js +++ b/data.js @@ -489,7 +489,8 @@ const cards = [ /* 71 */ { - title: "North's Government Falls - The War Ends in 1779", + full_title: "North's Government Falls - The War Ends in 1779", + title: "The War Ends in 1779", type: "mandatory-event", event: "the_war_ends", year: 1779, @@ -497,7 +498,8 @@ const cards = [ /* 72 */ { - title: "North's Government Falls - The War Ends in 1780", + full_title: "North's Government Falls - The War Ends in 1780", + title: "The War Ends in 1780", type: "mandatory-event", event: "the_war_ends", year: 1780, @@ -505,7 +507,8 @@ const cards = [ /* 73 */ { - title: "North's Government Falls - The War Ends in 1781", + full_title: "North's Government Falls - The War Ends in 1781", + title: "The War Ends in 1781", type: "mandatory-event", event: "the_war_ends", year: 1781, @@ -513,7 +516,8 @@ const cards = [ /* 74 */ { - title: "North's Government Falls - The War Ends in 1782", + full_title: "North's Government Falls - The War Ends in 1782", + title: "The War Ends in 1782", type: "mandatory-event", event: "the_war_ends", year: 1782, @@ -521,7 +525,8 @@ const cards = [ /* 75 */ { - title: "North's Government Falls - The War Ends in 1783", + full_title: "North's Government Falls - The War Ends in 1783", + title: "The War Ends in 1783", type: "mandatory-event", event: "the_war_ends", year: 1783, diff --git a/play.css b/play.css index 4f883b9..5ba69aa 100644 --- a/play.css +++ b/play.css @@ -1,10 +1,10 @@ main { background-color: slategray; } header { background-color: silver; } aside { background-color: #f5e8d7; } -body.British header.your_turn { background-color: salmon; } -body.American header.your_turn { background-color: skyblue; } -#role_American { background-color: skyblue; } -#role_British { background-color: salmon; } +body.America header.your_turn { background-color: skyblue; } +body.Britain header.your_turn { background-color: salmon; } +#role_Britain { background-color: salmon; } +#role_America { background-color: skyblue; } #log > div { padding-left: 20px; text-indent: -12px; } @@ -85,7 +85,7 @@ aside { /* CARD ACTION POPUP MENU */ #popup { max-width: 250px; } -#popup li.title { text-align: center } +#popup li.title { text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis } #popup li.disabled { display: none } /* MAP WITH MARKERS, CUs, LEADERS, AND SPACES */ diff --git a/play.html b/play.html index 53c7d5c..7426339 100644 --- a/play.html +++ b/play.html @@ -38,9 +38,9 @@
-
  • Playbook
  • Rulebook -
  • Cards +
  • Playbook +
  • Cards
  • @@ -49,14 +49,14 @@