summaryrefslogtreecommitdiff
path: root/play.html
blob: 787d9e69c12516fc06889ee9aacdd0931ce536d5 (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
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
<!DOCTYPE html>
<!-- vim:set nowrap: -->
<html>
<head>
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1">
<meta charset="UTF-8">
<title>ALGERIA</title>
<link rel="stylesheet" href="/fonts/fonts.css">
<link rel="stylesheet" href="/common/play.css">
<script defer src="/common/play.js"></script>
<script defer src="data.js"></script>
<script defer src="play.js"></script>
<style>

main { background-color: dimgray }

#role_FLN .role_name { background-color: #006633; color: white;}
#role_FRA .role_name { background-color: #002654; color: white; }

#mapwrap {
	width: 1500px;
	height: 1101px;
	/* width: 2705px;
	height: 1985px; */
	box-shadow: 0px 1px 10px #0008;
}

#map {
	width: 1500px;
	height: 1101px;
	background-size: 1500px 1101px;
	background-position: center;
	background-image: url(map.svg);
}

#map div {
	position: absolute;
	transition-property: top, left;
	transition-duration: 1s;
	transition-timing-function: ease;
}

#boxes { position: absolute; }
#cities { position: absolute; }
#units { position: absolute; }

/* SPACES */

.box{position:absolute;box-sizing:border-box;border:4px solid transparent}
.box.city{border-radius:50%}
.box.loc{border-radius:50%}
.box.action{border-color:lemonchiffon;}
.box.city.action{background-color:#6495ed55;border-color:deepskyblue;}
.box.loc.action{background-color:#fff5;border-color:white;}
.box.selected{border-color:yellow;}
.box.tip { border-color: white; }


/* COUNTERS */

#map .counter {
	position: absolute;
}

.counter {
	background-size: 1000%;
	background-repeat: no-repeat;
	border-style: solid;
	transition: top 200ms, left 200ms, transform 200ms;
}

.counter {
	width: 39px;
	height: 39px;
	border-width: 3px;
	border-radius: 8px;
	background-image: url(counters.svg);
}

.counter.m {
	width: 42px;
	height: 42px;
	border-width: 4px;
}

/* #mapwrap.fit .counter {
	background-image: url(counters-simple.svg);
} */

.counter.action {
	box-shadow: 0 0 0 2px white;
}

.counter.selected {
	box-shadow: 0 0 0 2px yellow;
}

.counter.turn_now{background-position:0% 0%}
.counter.fln_psl{background-position:11.11111111111111% 0%}
.counter.fln_ap{background-position:22.22222222222222% 0%}
.counter.gov_psl{background-position:33.33333333333333% 0%}
.counter.fln_control{background-position:44.44444444444444% 0%}
.counter.gov_control{background-position:55.55555555555556% 0%}
.counter.oas_active{background-position:66.66666666666666% 0%}
.counter.remote{background-position:77.77777777777777% 0%}
.counter.terror{background-position:88.88888888888889% 0%}

.counter.air_avail{background-position:0% 11.11111111111111%}
.counter.air_max{background-position:11.11111111111111% 11.11111111111111%}
.counter.helo_avail{background-position:22.22222222222222% 11.11111111111111%}
.counter.helo_max{background-position:33.33333333333333% 11.11111111111111%}
.counter.naval_pts{background-position:44.44444444444444% 11.11111111111111%}
.counter.border_zone{background-position:55.55555555555556% 11.11111111111111%}

.counter.fr_xx_2{background-position:0% 22.22222222222222%}
.counter.fr_xx_4{background-position:11.11111111111111% 22.22222222222222%}
.counter.fr_xx_9{background-position:22.22222222222222% 22.22222222222222%}
.counter.fr_xx_12{background-position:33.33333333333333% 22.22222222222222%}
.counter.fr_xx_13{background-position:44.44444444444444% 22.22222222222222%}
.counter.fr_xx_14{background-position:55.55555555555556% 22.22222222222222%}
.counter.fr_xx_19{background-position:66.66666666666666% 22.22222222222222%}
.counter.fr_xx_20{background-position:77.77777777777777% 22.22222222222222%}
.counter.fr_xx_21{background-position:88.88888888888889% 22.22222222222222%}
.counter.fr_xx_29{background-position:100% 22.22222222222222%}

.counter.fr_xx_27{background-position:0% 33.33333333333333%}
.counter.fr_xx_5{background-position:11.11111111111111% 33.33333333333333%}
.counter.fr_xx_7{background-position:22.22222222222222% 33.33333333333333%}
.counter.fr_xx_dispersed{background-position:33.33333333333333% 33.33333333333333%}
.counter.fr_x{background-position:44.44444444444444% 33.33333333333333%}
.counter.fr_x_airmobile{background-position:55.55555555555556% 33.33333333333333%}

.counter.fr_elite_x_para{background-position:0% 44.44444444444444%}
.counter.fr_elite_x_inf{background-position:11.11111111111111% 44.44444444444444%}
.counter.fr_elite_x_marine{background-position:22.22222222222222% 44.44444444444444%}
.counter.fr_elite_x_airmobile{background-position:33.33333333333333% 44.44444444444444%}
.counter.alg_x{background-position:44.44444444444444% 44.44444444444444%}
.counter.alg_x_airmobile{background-position:55.55555555555556% 44.44444444444444%}
.counter.alg_police{background-position:66.66666666666666% 44.44444444444444%}
/* .counter.alg_neut{background-position:77.77777777777777% 44.44444444444444%} */

.counter.fln_failek{background-position:0% 55.55555555555556%}
.counter.fln_band{background-position:11.11111111111111% 55.55555555555556%}
.counter.fln_cadre{background-position:22.22222222222222% 55.55555555555556%}
.counter.fln_front{background-position:33.33333333333333% 55.55555555555556%}
/* .counter.neut{background-position:44.44444444444444% 55.55555555555556%} */

.counter.neutralized {
    background-color: rgba(255,255,255,0.6);
    background-blend-mode: lighten;
	border-color:grey;
}

.panel {
	max-width: 900px;
	margin: 36px auto;
	background-color: #555;
}

.panel_header {
	background-color: #444;
	color: white;
	user-select: none;
	font-weight: bold;
	text-align: center;
	padding: 3px 1em;
}

.panel_body {
	display: flex;
	justify-content: start;
	flex-wrap: wrap;
	padding: 20px;
	gap: 14px;
}

</style>
</head>
<body>

<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 of Play</a>
			<a class="menu_item" href="info/charts.html" target="_blank">Charts &amp; Tables</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_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_FLN">
			<div class="role_name">
				FLN &#x2013;
				<span class="role_user"></span>
			</div>
		</div>
		<div class="role" id="role_FRA">
			<div class="role_name">
				FRA &#x2013;
				<span class="role_user"></span>
			</div>
		</div>
	</div>
	<div id="log"></div>
</aside>

<main>

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

<!-- scale 1.80333333333333333333 -->

<!-- <div id="cities">
<div id="Bogota" class="box city" style="top:1266px;left:684px;width:141px;height:140px"></div>
<div id="Cali" class="box city" style="top:1434px;left:328px;width:126px;height:126px"></div>
<div id="Medellin" class="box city" style="top:1003px;left:450px;width:126px;height:125px"></div>
<div id="Bucaramanga" class="box city" style="top:920px;left:779px;width:120px;height:120px"></div>
<div id="Cartagena" class="box city" style="top:457px;left:445px;width:110px;height:110px"></div>
<div id="Cucuta" class="box city" style="top:809px;left:896px;width:110px;height:110px"></div>
<div id="Ibague" class="box city" style="top:1219px;left:447px;width:120px;height:119px"></div>
<div id="Neiva" class="box city" style="top:1488px;left:534px;width:110px;height:109px"></div>
<div id="Pasto" class="box city" style="top:1728px;left:219px;width:110px;height:110px"></div>
<div id="Santa Marta" class="box city" style="top:376px;left:622px;width:120px;height:119px"></div>
<div id="Sincelejo" class="box city" style="top:653px;left:459px;width:110px;height:110px"></div>
</div> -->

<div id="boxes">
</div>

<div id="markers">
	<div class="counter turn_now" style="left:3px;top:4px;"></div>
	<div class="counter fln_psl" style="left:53px;top:4px;"></div>
	<div class="counter fln_ap" style="left:103px;top:4px;"></div>
	<div class="counter gov_psl" style="left:153px;top:4px;"></div>
	<div class="counter fln_control" style="left:203px;top:4px;"></div>
	<div class="counter gov_control" style="left:253px;top:4px;"></div>
	<div class="counter oas_active" style="left:303px;top:4px;"></div>
	<div class="counter remote" style="left:353px;top:4px;"></div>
	<div class="counter terror" style="left:403px;top:4px;"></div>


	<!-- top right -->
	<div class="counter turn_now" style="left:1450px;top:4px;"></div>

	<!-- bottom right -->
	<div class="counter turn_now" style="left:1450px;top:1051px;"></div>

	<!-- bottom left -->
	<div class="counter turn_now" style="left:3px;top:1051px;"></div>

	<div class="counter turn_now" style="left:242px;top:330px;"></div>

	<div class="counter border_zone" style="left:163px;top:223px;"></div>
</div>

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

</div>
</div>

<div id="fra_supply_panel" class="panel">
<div id="fra_supply_header" class="panel_header">French Supply</div>
<div id="fra_supply" class="panel_body">

<div class="counter fr_xx_2"></div>
<div class="counter fr_xx_4"></div>
<div class="counter fr_xx_9"></div>
<div class="counter fr_xx_12"></div>
<div class="counter fr_xx_13"></div>
<div class="counter fr_xx_14 neutralized"></div>
<div class="counter fr_xx_19"></div>
<div class="counter fr_xx_20"></div>
<div class="counter fr_xx_21"></div>
<div class="counter fr_xx_29"></div>

<div class="counter fr_xx_27"></div>
<div class="counter fr_xx_5 neutralized"></div>
<div class="counter fr_xx_7 action"></div>
<div class="counter fr_xx_dispersed"></div>
<div class="counter fr_x"></div>
<div class="counter fr_x_airmobile"></div>
<div class="counter fr_elite_x_para"></div>
<div class="counter fr_elite_x_inf neutralized"></div>
<div class="counter fr_elite_x_marine"></div>
<div class="counter fr_elite_x_airmobile"></div>
<div class="counter alg_x"></div>
<div class="counter alg_x_airmobile neutralized"></div>
<div class="counter alg_police neutralized"></div>
<div class="counter alg_police"></div>
<div class="counter alg_police"></div>
<div class="counter alg_police"></div>
<div class="counter alg_police"></div>
<div class="counter alg_police"></div>
<div class="counter alg_police"></div>
<div class="counter alg_police"></div>
<div class="counter alg_police"></div>
<div class="counter alg_police"></div>

</div>
</div>

<div id="fln_supply_panel" class="panel">
<div id="fln_supply_header" class="panel_header">FLN Supply</div>
<div id="fln_supply" class="panel_body">

<div class="counter fln_failek neutralized"></div>
<div class="counter fln_band"></div>
<div class="counter fln_cadre"></div>
<div class="counter fln_front neutralized"></div>

</div>
</div>

</main>

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

</body>