blob: f1629008e28fe16572b5c58420f94ddf17183045 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
|
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1">
<meta charset="utf-8">
<title>WASHINGTON'S WAR</title>
<link rel="icon" href="favicon.png">
<link rel="stylesheet" href="/fonts/fonts.css">
<link rel="stylesheet" href="/common/play.css">
<link rel="stylesheet" href="play.css">
<script defer src="/common/play.js"></script>
<script defer src="data.js"></script>
<script defer src="cards.js"></script>
<script defer src="play.js"></script>
</script>
</head>
<body>
<div id="popup" onmouseleave="hide_popup_menu()">
<div id="menu_card_play_event" onclick="on_card_play_event()">
Play Event
</div>
<div id="menu_card_discard_event" onclick="on_card_discard_event()">
Discard for PC action
</div>
<div id="menu_card_campaign" onclick="on_card_campaign()">
Play Campaign
</div>
<div id="menu_card_ops_general" onclick="on_card_ops_general()">
Activate a General
</div>
<div id="menu_card_ops_pc" onclick="on_card_ops_pc()">
Place PC markers
</div>
<div id="menu_card_ops_reinforcements" onclick="on_card_ops_reinforcements()">
Bring on Reinforcements
</div>
<div id="menu_card_ops_queue" onclick="on_card_ops_queue()">
Place into Operations Queue
</div>
<div id="menu_card_battle_play" onclick="on_card_battle_play()">
Play for +2 DRM
</div>
<div id="menu_card_battle_discard" onclick="on_card_battle_discard()">
Discard for +1 DRM
</div>
<div id="menu_exchange_for_discard" onclick="on_exchange_for_discard()">
Exchange for Discarded Event
</div>
</div>
<header>
<div class="menu">
<div class="menu_title"><img src="/images/cog.svg"></div>
<div class="menu_popup">
<div class="menu_item" onclick="window.open('info/playbook.html', '_blank')">Playbook</div>
<div class="menu_item" onclick="window.open('info/rulebook.html', '_blank')">Rulebook</div>
<div class="menu_item" onclick="window.open('cards.html', '_blank')">Cards</div>
<div class="menu_separator"></div>
<div class="menu_item" onclick="send_save()">🐞 Save</div>
<div class="menu_item" onclick="send_restore()">🐞 Restore</div>
<div class="menu_separator"></div>
<div class="menu_item" onclick="send_restart()">⚠ Restart</div>
</div>
</div>
<div class="icon_button" onclick="toggle_markers()"><img src="/images/earth-america.svg"></div>
<div class="icon_button" onclick="toggle_zoom()"><img src="/images/magnifying-glass.svg"></div>
<div class="icon_button" onclick="toggle_log()"><img src="/images/scroll-quill.svg"></div>
<div id="prompt"></div>
<div id="actions"></div>
</header>
<aside>
<div class="roles">
<div class="role" id="role_American">
<div class="role_name">
American
<div class="role_vp" id="american_vp">VP</div>
<div class="role_user">-</div>
</div>
<div class="role_info" id="american_info">$N cards in hand.</div>
</div>
<div class="role" id="role_British">
<div class="role_name">
British
<div class="role_vp" id="british_vp"></div>
<div class="role_user">-</div>
</div>
<div class="role_info" id="british_info">$N cards in hand.</div>
</div>
<div class="role_info last_played"><div id="last_played" class="card show card_back"></div></div>
</div>
<div id="log"></div>
</aside>
<main>
<div id="mapwrap">
<div id="map">
<div id="pc"></div>
<div id="generals"></div>
<div id="cu"></div>
<div id="markers"></div>
<div id="spaces"></div>
<div id="war_ends"></div>
<div id="played_british_reinforcements" class="reinforcements"></div>
<div id="played_american_reinforcements_1" class="reinforcements"></div>
<div id="played_american_reinforcements_2" class="reinforcements"></div>
</div>
</div>
<div class="hand">
<div id="card+1" class="card card_1"></div>
<div id="card+2" class="card card_1"></div>
<div id="card+3" class="card card_1"></div>
<div id="card+4" class="card card_1"></div>
<div id="card+5" class="card card_1"></div>
<div id="card+6" class="card card_1"></div>
<div id="card+7" class="card card_1"></div>
<div id="card+8" class="card card_1"></div>
<div id="card+9" class="card card_1"></div>
<div id="card+10" class="card card_1"></div>
<div id="card+11" class="card card_1"></div>
<div id="card+12" class="card card_1"></div>
<div id="card+13" class="card card_1"></div>
<div id="card+14" class="card card_1"></div>
<div id="card+15" class="card card_1"></div>
<div id="card+16" class="card card_1"></div>
<div id="card+17" class="card card_1"></div>
<div id="card+18" class="card card_1"></div>
<div id="card+19" class="card card_1"></div>
<div id="card+20" class="card card_1"></div>
<div id="card+21" class="card card_1"></div>
<div id="card+22" class="card card_1"></div>
<div id="card+23" class="card card_23"></div>
<div id="card+24" class="card card_23"></div>
<div id="card+25" class="card card_23"></div>
<div id="card+26" class="card card_23"></div>
<div id="card+27" class="card card_23"></div>
<div id="card+28" class="card card_23"></div>
<div id="card+29" class="card card_23"></div>
<div id="card+30" class="card card_23"></div>
<div id="card+31" class="card card_23"></div>
<div id="card+32" class="card card_23"></div>
<div id="card+33" class="card card_23"></div>
<div id="card+34" class="card card_23"></div>
<div id="card+35" class="card card_23"></div>
<div id="card+36" class="card card_23"></div>
<div id="card+37" class="card card_23"></div>
<div id="card+38" class="card card_23"></div>
<div id="card+39" class="card card_23"></div>
<div id="card+40" class="card card_23"></div>
<div id="card+41" class="card card_23"></div>
<div id="card+42" class="card card_23"></div>
<div id="card+43" class="card card_23"></div>
<div id="card+44" class="card card_23"></div>
<div id="card+45" class="card card_45"></div>
<div id="card+46" class="card card_45"></div>
<div id="card+47" class="card card_45"></div>
<div id="card+48" class="card card_45"></div>
<div id="card+49" class="card card_45"></div>
<div id="card+50" class="card card_45"></div>
<div id="card+51" class="card card_45"></div>
<div id="card+52" class="card card_45"></div>
<div id="card+53" class="card card_45"></div>
<div id="card+54" class="card card_45"></div>
<div id="card+55" class="card card_45"></div>
<div id="card+56" class="card card_45"></div>
<div id="card+57" class="card card_45"></div>
<div id="card+58" class="card card_45"></div>
<div id="card+59" class="card card_45"></div>
<div id="card+60" class="card card_45"></div>
<div id="card+61" class="card card_45"></div>
<div id="card+62" class="card card_45"></div>
<div id="card+63" class="card card_45"></div>
<div id="card+64" class="card card_45"></div>
<div id="card+65" class="card card_45"></div>
<div id="card+66" class="card card_45"></div>
<div id="card+67" class="card card_67"></div>
<div id="card+68" class="card card_68"></div>
<div id="card+69" class="card card_69"></div>
<div id="card+70" class="card card_70"></div>
<div id="card+71" class="card card_71"></div>
<div id="card+72" class="card card_72"></div>
<div id="card+73" class="card card_73"></div>
<div id="card+74" class="card card_74"></div>
<div id="card+75" class="card card_75"></div>
<div id="card+76" class="card card_76"></div>
<div id="card+77" class="card card_77"></div>
<div id="card+78" class="card card_78"></div>
<div id="card+79" class="card card_79"></div>
<div id="card+80" class="card card_80"></div>
<div id="card+81" class="card card_81"></div>
<div id="card+82" class="card card_82"></div>
<div id="card+83" class="card card_83"></div>
<div id="card+84" class="card card_84"></div>
<div id="card+85" class="card card_85"></div>
<div id="card+86" class="card card_86"></div>
<div id="card+87" class="card card_87"></div>
<div id="card+88" class="card card_88"></div>
<div id="card+89" class="card card_89"></div>
<div id="card+90" class="card card_90"></div>
<div id="card+91" class="card card_91"></div>
<div id="card+92" class="card card_92"></div>
<div id="card+93" class="card card_93"></div>
<div id="card+94" class="card card_94"></div>
<div id="card+95" class="card card_95"></div>
<div id="card+96" class="card card_96"></div>
<div id="card+97" class="card card_97"></div>
<div id="card+98" class="card card_98"></div>
<div id="card+99" class="card card_99"></div>
<div id="card+100" class="card card_100"></div>
<div id="card+101" class="card card_101"></div>
<div id="card+102" class="card card_102"></div>
<div id="card+103" class="card card_103"></div>
<div id="card+104" class="card card_104"></div>
<div id="card+105" class="card card_105"></div>
<div id="card+106" class="card card_106"></div>
<div id="card+107" class="card card_107"></div>
<div id="card+108" class="card card_108"></div>
<div id="card+109" class="card card_109"></div>
<div id="card+110" class="card card_110"></div>
</div>
</main>
<footer id="status"></footer>
</body>
|