summaryrefslogtreecommitdiff
path: root/play.html
blob: 53c5ead9aca5b4f66008bdc7f6eda081ebcb6d95 (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
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
<!DOCTYPE html>
<!-- vim:set nowrap: -->
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1">
<meta charset="utf-8">
<title>ROMMEL</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="play.js"></script>
</head>
<body>

<div id="battle" class="hide">
	<div id="battle_header"></div>
	<div id="battle_hits">
		<img class="hits_icon" src="icons/armor.svg">
		<div class="hits_text" id="hits_armor">0</div>
		<img class="hits_icon" src="icons/infantry.svg">
		<div class="hits_text" id="hits_infantry">0</div>
		<img class="hits_icon" src="icons/motorized_antitank_old.svg">
		<div class="hits_text" id="hits_antitank">0</div>
		<img class="hits_icon" src="icons/artillery.svg">
		<div class="hits_text" id="hits_artillery">0</div>
	</div>
	<div class="battle_line" id="battle_line_1"></div>
	<div class="battle_line" id="battle_line_2"></div>
	<div class="battle_line" id="battle_line_3"></div>
	<div class="battle_line" id="battle_line_4"></div>
	<div id="battle_buttons">
		<button id="battle_armor_button" onclick="send_action('armor')">Armor</button>
		<button id="battle_infantry_button" onclick="send_action('infantry')">Infantry</button>
		<button id="battle_antitank_button" onclick="send_action('antitank')">Anti-tank</button>
		<button id="battle_artillery_button" onclick="send_action('artillery')">Artillery</button>
		<button id="battle_end_hits_button" onclick="send_action('end_hits')">Done</button>
		<button id="battle_end_fire_button" onclick="send_action('end_fire')">Done</button>
	</div>
	<div id="battle_message"></div>
</div>

<div id="pursuit" class="hide">
	<div id="pursuit_header">Pursuit Fire: $NAME</div>
	<div id="pursuit_hits">0 hits</div>
	<div class="battle_line" id="pursuit_line_1"></div>
	<div class="battle_line" id="pursuit_line_2"></div>
	<div id="pursuit_buttons">
		<button id="pursuit_end_hits_button" onclick="send_action('end_hits')">Done</button>
		<button id="pursuit_end_fire_button" onclick="send_action('end_fire')">End fire</button>
	</div>
	<div id="pursuit_message"></div>
</div>

<header>
	<div id="toolbar">
		<div class="menu">
			<div class="menu_title"><img src="/images/cog.svg"></div>
			<div class="menu_popup">
				<a class="menu_item" href="info/rules.html" target="_blank">Rules</a>
				<a class="menu_item" href="info/units.html" target="_blank">Units</a>
				<div class="resign menu_separator"></div>
				<div class="resign menu_item" onclick="confirm_resign()">Resign</div>
			</div>
		</div>
		<div class="icon_button" onclick="toggle_supply()"><img src="/images/oil-drum.svg"></div>
		<div class="icon_button" onclick="toggle_units()"><img src="/images/earth-africa-europe.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>
	<div id="prompt"></div>
	<div id="actions"></div>
</header>

<aside>
	<div id="roles">
		<div class="role" id="role_Axis">
			<div class="role_name">
				Axis
				<div class="role_supply" id="axis_supply">0</div>
				<div class="role_user">-</div>
			</div>
		</div>
		<div class="role" id="role_Allied">
			<div class="role_name">
				Allied
				<div class="role_supply" id="allied_supply">0</div>
				<div class="role_user">-</div>
			</div>
		</div>
	</div>
	<div id="log"></div>
</aside>

<main>
<div id="mapwrap">
<div id="map">

<!-- BEGIN INSERT MAP FILE -->
<svg id="mapsvg" xmlns="http://www.w3.org/2000/svg" width="2672" height="984">
<path fill="#5d8ec1" d="M0 0h2672v988H0z"/>
<path fill="#d6c4a9" d="M551 30c-35 15-67 40-107 45-34 12-59 39-92 52-44 24-82 58-121 89-25 18-49 40-64 67-12 27-33 52-33 81 6 51 16 98 41 144 15 24 15 53 26 78 0 43-32 72-61 99-45 26-90 70-144 63-25-14-15 15-17 31v238h2728V212c-28 3-48 16-78 13-18 27-45 12-60 31-17-3-47 24-71 30-32 19-72 24-106 3-29-18-64-8-95-18-30 5-61 11-93 19-24 4-39-34-64-5-32 19-67-16-77-22-27 15-56-7-79-9-33 4-67 11-100 17-35 0-70-3-104-8-36-12-75-8-109 6-24 9-49 13-73 23-27 5-101 22-96-19 7-34-30-38-30-68 3-27-28-32-48-30-31-18-47 0-76-1-21-3-56 4-81-6-24-6-39 20-65 10-21-3-51 6-68-5-13-7-7-18-36-13-9-1-24 3-31 0-23-9-51-12-74 0-28 3-55 22-81 4-35-13 2 44-24 7-18 2-26-25-43-26-14 11-30-7-27-25 11 14 11-15-2-19 4-22-6-33-30-29-27-4-49-16-72-18-30-11-70-19-93-18-26 16-46 2-70-6Zm330 118c-7 5 13 8 0 0z"/>
<path fill="#aeae7b" d="M557 40c-34 11-63 40-102 38-30 8-52 38-83 49-13 11 1 27-4 39 25 22 6 59-21 72 4 37-22 59-28 90-17 10-51 43-9 37 23-21 62 10 79-3 8-28 44 30 52-6 17-17 49-15 56-42 29-16 66-3 95 6 25 33 26-24 36-39 2-26 56-67 67-31 25 11 53 6 76-8 30-17 40-55 26-84-1-22-17-53-46-48-2-18-18-18-18-36-23 5-39-10-49 0-17-13-46-19-70-27-10 4-36 43-31 13 25-15-16-20-26-20Zm92 24c11 0 2 3-6-1z"/>
<path fill="#c4ab8b" d="M2429 528c-37 4-68 31-101 3-38-4-76 20-99 48-25 3-40 8-42 35-24 26-70 27-101 27-36 27-17 70-19 105-17 11-34 13-53 23-1 22-12 46-4 68-16 35-57 25-73 58-2 18 11 35 6 55 19 20 44 29 68 38h160c28-9 3-42 32-50-21-35 51-54 5-80-2-29-4-58 30-68 29-21-30-34-45-45-12-23-6-33 16-47 11-29 56-6 58-46 13-27 56-13 53-43 2-30 29-34 51-48 24 3 52 24 68 0 27-20 46 13 59 17 36-41-45-46-69-50z"/>
</svg>
<!-- END INSERT MAP FILE -->

<div id="calendar">
<div class="month" id="month1">1</div>
<div class="month" id="month2">2</div>
<div class="month" id="month3">3</div>
<div class="month" id="month4">4</div>
<div class="month" id="month5">5</div>
<div class="month" id="month6">6</div>
<div class="month" id="month7">7</div>
<div class="month" id="month8">8</div>
<div class="month" id="month9">9</div>
<div class="month" id="month10">10</div>
</div>
<div id="calendar2">
<div class="month" id="month11">11</div>
<div class="month" id="month12">12</div>
<div class="month" id="month13">13</div>
<div class="month" id="month14">14</div>
<div class="month" id="month15">15</div>
<div class="month" id="month16">16</div>
<div class="month" id="month17">17</div>
<div class="month" id="month18">18</div>
<div class="month" id="month19">19</div>
<div class="month" id="month20">20</div>
</div>

<div id="minefields"></div>
<div id="units"></div>

<div style="position:absolute;bottom:20px;right:24px;display:flex;gap:20px;align-items:end">

<table>
<tr><th colspan="2">ROAD BONUS
<tr><td>Highway<td>+4
<tr><td>Track<td>+2
<tr><td>Trail<td>+1
</table>

<!--
<table>
<tr><th colspan="2">SUPPLY RANGE
<tr><td>Highway<td>&#x221e;
<tr><td>Track<td>3
<tr><td>Trail<td>2
<tr><td>No Road<td>1
</table>
-->

<table>
<tr><th colspan="2">UNIT SPEED
<tr><td>
<img src="icons/recon.svg" title="Recon">
<td>4
<tr><td>
<img src="icons/armor.svg" title="Armor">
<img src="icons/mobile_antitank.svg" title="Mobile Anti-tank">
<img src="icons/mechanized_infantry.svg" title="Mechanized Infantry">
<img src="icons/self_propelled_artillery.svg" title="Self-propelled Artillery">
<td>3
<tr><td>
<img src="icons/motorized_infantry.svg" title="Motorized Infantry">
<img src="icons/motorized_antitank_old.svg" title="Motorized Anti-tank">
<td>2
<tr><td>
<img src="icons/infantry.svg" title="Infantry">
<img src="icons/paratroopers.svg" title="Paratroopers">
<img src="icons/artillery.svg" title="Artillery">
<td>1
</table>

<!--
<table>
<tr><th colspan="2">HEXSIDE LIMIT
<tr><td>Mountain<br>Ridge<br>Marsh<td>0
<tr><td>Pass<td>1
<tr><td>Clear<td>2
</table>
-->

<table>
<tr><td class="blank" colspan="2"><th colspan="4">TARGET UNIT
<tr>
<td class="blank" colspan="2">
<td><img src="icons/armor.svg" title="Armor">
<td><img src="icons/infantry.svg" title="Infantry">
<td><img src="icons/motorized_antitank_old.svg" title="Anti-tank">
<td><img src="icons/artillery.svg" title="Artillery">
<tr><th rowspan="4" style="writing-mode:vertical-lr;min-width:20px">FIRING UNIT
<td><img src="icons/armor.svg" title="Armor">
<td class="required_target" title="Required target">(SF)
<td>DF
<td>SF
<td class="only_unsupported" title="Only if unsupported">[TF]
<tr>
<td><img src="icons/infantry.svg" title="Infantry">
<td>SF
<td class="required_target" title="Required target">(SF)
<td>DF
<td class="only_unsupported" title="Only if unsupported">[TF]
<tr>
<td><img src="icons/motorized_antitank_old.svg" title="Anti-tank">
<td>DF
<td>SF
<td>SF
<td class="only_unsupported" title="Only if unsupported">[TF]
<tr title="Must fire first">
<td><img src="icons/artillery.svg" title="Artillery">
<td class="must_fire_first">SF*
<td class="must_fire_first">DF*
<td class="must_fire_first">DF*
<td class="must_fire_first">SF*
<!--
<tr><td colspan="6">
<span class="must_fire_first">(Must fire first)</span><br>
<span class="required_target">[Required target]</span><br>
<span class="only_unsupported">Only if unsupported*</span>
-->
</table>

<table>
<tr><th colspan="2">BP COSTS PER CV
<tr><td>
<img src="icons/armor.svg" title="Armor">
<img src="icons/motorized_antitank_old.svg" title="Anti-tank">
<img src="icons/artillery.svg" title="Artillery">
<td>3
<tr><td>
<img src="icons/motorized_infantry.svg" title="Motorized Infantry">
<img src="icons/mechanized_infantry.svg" title="Mechanized Infantry">
<td>2
<tr><td>
<img src="icons/infantry.svg" title="Unmotorized Infantry">
<td>1
<!--
<tr><td colspan="2"><i>Elite Units cost double</i>
-->
<tr><td>Minefields<td>15
<tr><td>Supply Card<td>10
</table>

<table>
<tr><th colspan="3">TURN OPTIONS
<tr><td>&#x25D0;<td>Basic<td>MC
<tr><td>&#x25D0;&#x25D0;<td>Offensive<td>MMC
<tr><td>&#x25D0;&#x25D0;<td>Assault<td>MC*
<tr><td>&#x25D0;&#x25D0;&#x25D0;<td>Blitz<td>MC+MC
<tr><td>No Cost<td>Pass<td>W
</table>

</div>

</div>
</div>

<div id="hand" class="hand">
</div>

</main>

<footer id="status"></footer>

</body>