summaryrefslogtreecommitdiff
path: root/play.html
blob: 1715016152512b0c0f844763ba282e30339a6ce0 (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
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
<!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>SHORES OF TRIPOLI</title>
<link rel="icon" href="Flag_of_Tripoli_18th_century.png">
<link rel="stylesheet" href="/fonts/fonts.css">
<link rel="stylesheet" href="/common/grid.css">
<script defer src="/socket.io/socket.io.min.js"></script>
<script defer src="/common/client.js"></script>
<script defer src="data.js"></script>
<script defer src="ui.js"></script>
<style>

.grid_center { background-color: slategray; }
.grid_log { background-color: gainsboro; }
.grid_top { background-color: silver; }
.grid_top.Tripolitania.your_turn { background-color: salmon; }
.grid_top.United_States.your_turn { background-color: skyblue; }
.grid_top.disconnected { background-color: red; }
.role_info { background-color: gainsboro; }
.role_info.card_info { background-color: silver; }
.one .role_name { background-color: skyblue; }
.two .role_name { background-color: salmon; }

#turn {
	padding: 8px 0px 8px 8px;
	border-bottom: 1px solid black;
	white-space: pre-wrap;
	font-style: italic;
	font-size: 12px;
	line-height: 18px;
	font-family: "Source Serif SmText";
}

.hand {
	min-height: 300px;
	justify-content: left;
}

.hand_separator {
	border-bottom: 2px dotted gainsboro;
}

.Observer ~ .grid_center > #hand_cards { display: none; }
.Observer ~ .grid_center > .hand_separator { display: none; }

.card {
	width: 250px;
	height: 350px;
	border-radius: 12px;
}

.card.blank {
	background-color: dimgray;
	transform: none !important;
}

.card_info .card {
	margin: 15px auto;
	width: 100px;
	height: 140px;
	border-radius: 5px;
}

.role_info {
	padding: 5px 20px;
	white-space: pre-wrap;
}

#tooltip.card {
	position: fixed;
	z-index: 100;
	right: 240px;
	top: 60px;
}
#tooltip.show {
	display: block;
}

/* MAP */

.mapwrap.fit {
	box-shadow: 0px 0px 15px rgba(0,0,0,0.8);
}

#map {
	position: relative;
	display: block;
	width: 2476px;
	height: 801px;
	background-color: black;
	box-shadow: 0px 0px 15px rgba(0,0,0,0.8);
}

svg {
	position: absolute;
}

svg image {
	pointer-events: none;
}

svg circle, .piece {
	transition-property: x, y, cx, cy, top, left;
	transition-duration: 1s;
	transition-timing-function: ease;
}

.piece {
	position: absolute;
	pointer-events: none;
	background-size: cover;
	background-repeat: no-repeat;
	filter: drop-shadow(1px 1px 4px rgba(0,0,0,0.5));
}

.piece.highlight {
	pointer-events: all;
	cursor: pointer;
	filter: brightness(150%) drop-shadow(0 0 3px white);
}

.piece.damaged {
	filter: brightness(60%) drop-shadow(1px 1px 4px rgba(0,0,0,0.5));
}

.piece.us_frigate { width: 42px; height: 29px; background-image: url("icons/us_frigate.svg"); }
.piece.se_frigate { width: 42px; height: 29px; background-image: url("icons/se_frigate.svg"); }
.piece.tr_frigate { width: 42px; height: 29px; background-image: url("icons/tr_frigate.svg"); }
.piece.us_gunboat { width: 33px; height: 27px; background-image: url("icons/us_gunboat.svg"); }
.piece.tr_corsair { width: 33px; height: 27px; background-image: url("icons/tr_corsair.svg"); }
.piece.al_corsair { width: 33px; height: 27px; background-image: url("icons/al_corsair.svg"); }
.piece.us_marine { width: 21px; height: 21px; background-image: url("icons/us_marine.svg"); }
.piece.ar_infantry { width: 21px; height: 21px; background-image: url("icons/ar_infantry.svg"); }
.piece.tr_infantry { width: 21px; height: 21px; background-image: url("icons/tr_infantry.svg"); }
.piece.gold { width: 40px; height: 40px; background-image: url("icons/gold.png"); }
.piece.marker { width: 50px; height: 50px; border-radius: 50%; background-color: #444; border: 2px solid black; }

.harbor {
	fill-opacity: 0;
	stroke: white;
	stroke-width: 4;
	opacity: 0;
}

.patrol_zone {
	fill-opacity: 0;
	stroke: white;
	stroke-width: 4;
	opacity: 0;
}

.patrol_zone.highlight, .harbor.highlight {
	opacity: 1;
	cursor: pointer;
}

#map .harbor.where {
	opacity: 1;
	fill-opacity: 0.5;
	fill: gold;
	stroke: gold;
}

#map .patrol_zone.where {
	opacity: 1;
	fill-opacity: 0.5;
	fill: gold;
	stroke: white;
}

/* CARD ACTION POPUP MENU */

#popup {
	position: fixed;
	user-select: none;
	background-color: gainsboro;
	left: 10px;
	top: 100px;
	box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.3);
	z-index: 200;
	min-width: 20ex;
	white-space: nowrap;
	display: none;
}
#popup div { padding: 3pt 8pt; color: gray; display: none; }
#popup div.enabled { color: black; display: block; }
#popup div.enabled:hover { background-color: teal; color: white; }
#popup div.always { display: block; }
.Tripolitania ~ .grid_center > #popup > .tr_always { display: block; }
.United_States ~ .grid_center > #popup > .us_always { display: block; }

/* CARD IMAGES */

.card {
	text-align: center;
	color: white;
	font-weight: bold;
	font-size: 25px;
	line-height: 40px;
}

.tr_card_1{background-image:url('cards/tr_card_1.jpg')}
.tr_card_2{background-image:url('cards/tr_card_2.jpg')}
.tr_card_3{background-image:url('cards/tr_card_3.jpg')}
.tr_card_4{background-image:url('cards/tr_card_4.jpg')}
.tr_card_5{background-image:url('cards/tr_card_5.jpg')}
.tr_card_6{background-image:url('cards/tr_card_5.jpg')}
.tr_card_7{background-image:url('cards/tr_card_7.jpg')}
.tr_card_8{background-image:url('cards/tr_card_7.jpg')}
.tr_card_9{background-image:url('cards/tr_card_9.jpg')}
.tr_card_10{background-image:url('cards/tr_card_9.jpg')}
.tr_card_11{background-image:url('cards/tr_card_11.jpg')}
.tr_card_12{background-image:url('cards/tr_card_12.jpg')}
.tr_card_13{background-image:url('cards/tr_card_13.jpg')}
.tr_card_14{background-image:url('cards/tr_card_14.jpg')}
.tr_card_15{background-image:url('cards/tr_card_15.jpg')}
.tr_card_16{background-image:url('cards/tr_card_16.jpg')}
.tr_card_17{background-image:url('cards/tr_card_17.jpg')}
.tr_card_18{background-image:url('cards/tr_card_18.jpg')}
.tr_card_19{background-image:url('cards/tr_card_19.jpg')}
.tr_card_20{background-image:url('cards/tr_card_20.jpg')}
.tr_card_21{background-image:url('cards/tr_card_21.jpg')}
.tr_card_22{background-image:url('cards/tr_card_22.jpg')}
.tr_card_23{background-image:url('cards/tr_card_23.jpg')}
.tr_card_24{background-image:url('cards/tr_card_24.jpg')}
.tr_card_25{background-image:url('cards/tr_card_25.jpg')}
.tr_card_26{background-image:url('cards/tr_card_26.jpg')}
.tr_card_27{background-image:url('cards/tr_card_27.jpg')}
.tr_card_28{background-image:url('cards/tr_card_28.jpg')}
.tr_card_29{background-image:url('cards/tr_card_29.jpg')}
.tr_card_30{background-image:url('cards/tr_card_30.jpg')}
.tr_card_back{background-image:url('cards/tr_card_31.jpg')}

.us_card_1{background-image:url('cards/us_card_1.jpg')}
.us_card_2{background-image:url('cards/us_card_2.jpg')}
.us_card_3{background-image:url('cards/us_card_3.jpg')}
.us_card_4{background-image:url('cards/us_card_4.jpg')}
.us_card_5{background-image:url('cards/us_card_5.jpg')}
.us_card_6{background-image:url('cards/us_card_6.jpg')}
.us_card_7{background-image:url('cards/us_card_6.jpg')}
.us_card_8{background-image:url('cards/us_card_6.jpg')}
.us_card_9{background-image:url('cards/us_card_6.jpg')}
.us_card_10{background-image:url('cards/us_card_10.jpg')}
.us_card_11{background-image:url('cards/us_card_11.jpg')}
.us_card_12{background-image:url('cards/us_card_12.jpg')}
.us_card_13{background-image:url('cards/us_card_13.jpg')}
.us_card_14{background-image:url('cards/us_card_14.jpg')}
.us_card_15{background-image:url('cards/us_card_15.jpg')}
.us_card_16{background-image:url('cards/us_card_16.jpg')}
.us_card_17{background-image:url('cards/us_card_17.jpg')}
.us_card_18{background-image:url('cards/us_card_18.jpg')}
.us_card_19{background-image:url('cards/us_card_19.jpg')}
.us_card_20{background-image:url('cards/us_card_20.jpg')}
.us_card_21{background-image:url('cards/us_card_21.jpg')}
.us_card_22{background-image:url('cards/us_card_22.jpg')}
.us_card_23{background-image:url('cards/us_card_23.jpg')}
.us_card_24{background-image:url('cards/us_card_24.jpg')}
.us_card_25{background-image:url('cards/us_card_25.jpg')}
.us_card_26{background-image:url('cards/us_card_26.jpg')}
.us_card_27{background-image:url('cards/us_card_27.jpg')}
.us_card_back{background-image:url('cards/us_card_28.jpg')}

</style>
</head>
<body>

<div class="status" id="status"></div>
<div id="tooltip" class="card"></div>

<div class="chat_window">
<div class="chat_header">Chat</div>
<div class="chat_text"></div>
<form class="chat_form" action=""><input id="chat_input" autocomplete="off"></form>
</div>

<div class="grid_window">

	<div class="grid_top">

		<div class="menu">
			<div class="menu_title"><img src="/images/cog.svg"></div>
			<div class="menu_popup">
				<div class="menu_item" onclick="toggle_fullscreen()">Fullscreen</div>
				<div class="menu_separator"></div>
				<div class="menu_item" onclick="window.open('info/rules.html', '_blank')">Rules</div>
				<div class="menu_item" onclick="window.open('info/history.html', '_blank')">History</div>
				<div class="menu_separator"></div>
				<div class="menu_item" onclick="window.open('info/tr_cards.html', '_blank')">Tripolitan Cards</div>
				<div class="menu_item" onclick="window.open('info/us_cards.html', '_blank')">United States Cards</div>
				<div class="menu_separator"></div>
				<div class="menu_item" onclick="confirm_resign()">Resign</div>
			</div>
		</div>

		<div class="image_button" onclick="toggle_zoom()"><img src="/images/magnifying-glass.svg"></div>
		<div class="image_button chat_button" onclick="toggle_chat()"><img src="/images/chat-bubble.svg"></div>

		<div id="prompt" class="prompt">$PROMPT</div>

		<button id="button_pass" onclick="on_pass()" class="hide">Pass</button>
		<button id="button_next" onclick="on_next()" class="hide">Next</button>
		<button id="button_undo" onclick="on_undo()" class="hide">Undo</button>

		<div id="rematch_button" class="image_button hide" onclick="send_rematch()"><img src="/images/cycle.svg"></div>
	</div>

	<div class="grid_role">
		<div class="role one">
			<div class="role_vp" id="us_score">30</div>
			<div class="role_name">United States (<span class="role_user">$USER</span>)</div>
			<div class="role_info" id="us_info">0 cards in hand</div>
		</div>
		<div class="role two">
			<div class="role_vp" id="tr_score">0</div>
			<div class="role_name">Tripolitania (<span class="role_user">$USER</span>)</div>
			<div class="role_info" id="tr_info">0 cards in hand</div>
		</div>
		<div class="role_info card_info"><div id="active_card" class="card show blank"></div></div>
	</div>

	<div class="grid_log">
		<div class="log" id="log"></div>
	</div>

	<div class="grid_center">

<div id="mapwrap" class="mapwrap fit">
<div id="map" class="map">
<svg id="svgmap" width="2476px" height="801px" viewBox="0 0 2476 801">
<image href="map.jpg" x="0" y="0" width="2476" height="801" />
<path class="patrol_zone" d="M184.82 276.533a136 136 0 00-136 136 136 136 0 0073.566 120.69c1.096.19 2.461.65 4.215 1.378 3.6 1.5 4.499 1.5 10.399.1 3.6-.9 10.3-2.1 15-2.7 4.7-.7 12.3-2.601 16.9-4.301 7.3-2.8 9.3-4.1 15.5-10.2 3.9-3.9 10-8.7 13.6-10.7 4.5-2.5 8.9-6.3 14-12 3.316-3.722 7.856-8.463 11.225-11.737a92.27 92.27 0 01-19.04-55.945 92.27 92.27 0 0192.075-92.26 136 136 0 00-111.44-58.325z" id="tangier_patrol_zone"/>
<path class="patrol_zone" d="M615.705 21.148c-2.433.155-2.407.483-1.205 1.352 3.9 2.8 4.2 3.4 4.1 7.7-.2 4.9-1.2 7.1-2.8 6.2-.6-.4-2-.7-3.2-.8-1.7-.1-2.1-.7-1.9-2.9.2-2.4 0-2.7-1.3-1.6-1.7 1.4-.9 7.5 1.3 9.7 1.6 1.7 1.6 1.7-.2 5.1-.8 1.7-1.2 4.2-.9 6.3.5 2.9.3 3.5-2 4.6-2.8 1.3-5.4 5.7-4.1 7 .4.4 1 .1 1.2-.6.3-.6 1.1-1.2 1.9-1.2 1.9 0 1.9 6.4-.1 8-1.9 1.6-1.9 3 .1 4.5 1.4.9 1.4 1.6.5 3.3-1.4 2.7-.6 4.3 1.6 3.5 1.4-.5 1.5-.1.9 2.8-.5 1.9-.8 3.8-.8 4.4 0 1.8 2 12.9 2.7 15.1.5 1.8.1 2.3-2.6 3.3-1.7.6-4.2 1.1-5.5 1.1-1.2 0-3.5 1.3-5.1 3-3.2 3.4-4.8 3.8-5.7 1.3-.6-1.4-.8-1.4-2.2.5-.8 1.2-2.4 2.2-3.4 2.2-1.6 0-1.8.5-1.4 2.9.3 1.6.1 3.8-.5 5-1 1.8-1.5 1.9-3.2 1-2.4-1.2-2.5-1.1-4.7 3.3-1.6 3.1-2 3.3-6.3 3.1l-4.7-.1-.7 8.1c-.4 4.5-1.1 8.8-1.7 9.4-.6.7-1.9 4.5-2.9 8.5-1 3.9-2.5 7.8-3.3 8.7-1.1 1.3-1.2 3.2-.6 9.1.6 5.6.4 8.2-.6 10.4-.8 1.6-1.4 3.7-1.4 4.8 0 1-1.1 2.4-2.5 3-2.7 1.2-2.7 1-2.9 13.7-.1 9.3-1.4 11.3-4.1 6.2-.8-1.7-2.2-3.1-3.1-3.1-.8 0-1.9-1-2.4-2.3-1.2-2.8-4.5-6.7-5.8-6.7-.5 0-1.5.7-2.2 1.6-.8.8-2.5 1.4-4.1 1.2-1.6-.1-3.6.5-4.8 1.6-1.1 1-2.5 1.5-3.1 1.1-.6-.4-1.7-.2-2.4.4-.7.6-2.1.9-3 .5-1-.4-1.8 0-2.2 1-.8 2-4 2.1-4.8.1-.3-.8-1.6-1.5-3-1.5s-2.8-.5-3.2-1.1c-.4-.7-1.6-.1-3.4 1.6-2.1 2-3.3 2.5-5.4 1.9-2.3-.5-2.7-1-2.1-3.1.4-1.6.2-2.2-.5-1.8-.5.3-1 1.6-1 2.9 0 2.4-3.4 4.6-6.9 4.6-1 0-2.4.7-3.1 1.5-.7.8-2.1 1.5-3.2 1.5s-2.6.7-3.4 1.5c-1.522 1.439-2.921 1.203-5.975-1.378.038.626.07 1.252.094 1.878 0 50.96-41.31 92.27-92.269 92.27-50.96 0-92.27-41.31-92.27-92.27a92.27 92.27 0 015.942-32.45c-4.284-.742-6.922-1.72-6.922-2.75 0-.5-1.2-.7-2.8-.3-3.5.7-4.1 0-8.7-9.4-1.9-3.9-4-7.1-4.6-7.1-.6 0-.9.3-.7.7 2.1 4.1 3.6 8.5 4.2 12 .5 3.5.2 4.6-1.7 6.9-2.4 2.8-11.9 6-13.9 4.7-.6-.3-2.7-.6-4.6-.5-1.823.076-3.414-.312-4.951-1.246C260.979 286.86 348.139 359.979 450 360c115.98 0 210-94.02 210-210a210 210 0 00-44.295-128.852z" id="gibraltar_patrol_zone"/>
<path class="patrol_zone" d="M879 113.5a136 136 0 00-136 136 136 136 0 009.45 49.746c.019.017.033.036.05.054 2.1 2 3.6 2.5 7.6 2.5 6.3.1 10.3.8 15 2.8 3.2 1.4 4 1.4 6.5.1 1.6-.8 4.199-2.7 5.699-4.2 2.228-2.228 3.107-2.635 6.176-2.204A92.27 92.27 0 01883.5 225.73a92.27 92.27 0 0183.928 54.151c.461-.22.86-.38 1.073-.38 1 0 1.799-1.6 5.499-9.7 1.2-2.7 2.6-5.1 3.2-5.4 2.6-1.6 19.8-2.4 22-1 1.3.8 2.3.8 3.6-.1 1.1-.6 3.8-.9 6.4-.6 2.986.365 4.169.353 5.17-.606a136 136 0 00.63-12.594 136 136 0 00-136-136z" id="algiers_patrol_zone"/>
<path class="patrol_zone" d="M1275.5 86a136 136 0 00-136 136 136 136 0 003.915 31.739 92.27 92.27 0 0188.835-67.76 92.27 92.27 0 0192.27 92.271 92.27 92.27 0 01-45.858 79.638A136 136 0 001411.5 222a136 136 0 00-136-136z" id="tunis_patrol_zone"/>
<path class="patrol_zone" d="M1514.121 309.44a243 243 0 00-232.214 171.452c.44.816.461 1.972.293 4.108-.1 2.4.5 7.7 1.4 11.7 1.4 5.9 1.5 7.7.5 9.9-1.3 3-.7 4.4 1.1 2.6 1.9-1.9 2.5-1.5 6.3 4.3 2.1 3 4.1 5.5 4.7 5.5.5 0 2.2 1.4 3.8 3.2 2.3 2.5 3.2 2.9 4.3 2 1.1-1 2-.8 4 .8 1.4 1.1 3.3 2 4.2 2 .376 0 .983.2 1.68.517a127.92 127.92 0 01101.91-50.79 127.92 127.92 0 01119.673 83.173c.745-.355 1.238-.383 1.238 0 0 .6.599 1.1 1.299 1.1.6 0 2.3.9 3.7 2 1.5 1.2 4.1 2 6.4 2 4.2 0 7.6 2.2 7.6 5 0 1-1.1 3.4-2.5 5.5l-2.6 3.7 2.1 4.4c1.2 2.4 3.1 4.6 4.3 5 3.5 1 5.7 3.5 5.7 6.3.1 1.4.7 3.7 1.5 5.1 2 3.5 1.8 6.4-.5 8.5-1.1 1-2 2.9-2 4.2 0 2.8 3.2 9.4 5.5 11.3 3 2.5 4.5 6.8 5.1 15.4.5 5.8 1.2 9 2.2 9.8 1.3 1.1 1.4.8.7-3.2-.4-2.5-.8-7.4-1-11-.3-7.6-1.7-13.2-4.4-17.7-1.7-2.7-1.8-3.4-.6-5 1.3-1.7 1.4-1.7 3.9.6 1.4 1.3 3.1 4.5 3.9 6.9.9 3.3 2.1 5 4.2 6.2 2.8 1.6 3 2.1 3.1 8.1.1 8.5.1 8.7 2.4 9.9 1.5.8 4.9.7 12.7-.4 11.4-1.6 12.9-1.3 16.9 2.9 1.8 1.9 3.1 2.3 9 2.3 3.9 0 8.1-.6 9.6-1.4 2.3-1.2 2.9-1.2 4.2.2.9.8 1.6 2.3 1.6 3.3 0 2.4-1.7 11.1-2.6 13.5-.6 1.6-.4 1.8 2.2 1.3 7.5-1.5 9.2-2.1 12.7-4.9 4.2-3.3 6.7-3.1 6.7.6s2.9 6.3 10.5 9.2c7.3 2.7 8.9 3 14.2 1.9 3-.7 3.4-.4 6.3 4.1 1.6 2.6 3 5.4 3 6.1 0 .7.5 1.3 1 1.3.6 0 1-1 1-2.3 0-1.2 1.3-4.2 3-6.7 2.6-3.9 2.8-4.6 1.5-6-.8-.9-1.5-2.1-1.5-2.6 0-1.7 5.5-6.4 7.4-6.4.9 0 3-1.4 4.6-3.1 2.5-2.8 3.2-3.1 6.5-2.5 3 .6 3.9 1.4 5.7 5.1 1.2 2.4 2.8 4.7 3.6 5 .9.346 1.918.18 2.867-.31a243 243 0 006.885-14.25c-.886-1.077-1.551-2.136-1.551-2.54 0-.762 2.217-2.868 4.513-4.644a243 243 0 0017.607-90.317 243 243 0 00-243-243z" id="tripoli_patrol_zone"/>
<circle class="harbor" id="tangier" r="92" cy="426" cx="296.5"/>
<circle class="harbor" id="gibraltar" r="92" cy="216" cx="374.25"/>
<circle class="harbor" id="algiers" r="92" cy="318" cx="883.5"/>
<circle class="harbor" id="tunis" r="92" cy="278.25" cx="1232.25"/>
<circle class="harbor" id="malta" r="92" cy="189.5" cx="1592.5"/>
<circle class="harbor" id="derne" r="92" cy="437.25" cx="2030.5"/>
<circle class="harbor" id="benghazi" r="92" cy="583" cx="1877"/>
<circle class="harbor" id="alexandria" r="92" cy="454.5" cx="2335.5"/>
<circle class="harbor" id="tripoli" r="128" cy="604.5" cx="1416"/>
</svg>
<div id="pieces">
<div id="us_frigate_1" class="piece us_frigate"></div>
<div id="us_frigate_2" class="piece us_frigate"></div>
<div id="us_frigate_3" class="piece us_frigate"></div>
<div id="us_frigate_4" class="piece us_frigate"></div>
<div id="us_frigate_5" class="piece us_frigate"></div>
<div id="us_frigate_6" class="piece us_frigate"></div>
<div id="us_frigate_7" class="piece us_frigate"></div>
<div id="us_frigate_8" class="piece us_frigate"></div>
<div id="tr_frigate_1" class="piece tr_frigate"></div>
<div id="tr_frigate_2" class="piece tr_frigate"></div>
<div id="se_frigate_1" class="piece se_frigate"></div>
<div id="se_frigate_2" class="piece se_frigate"></div>
<div id="us_gunboat_1" class="piece us_gunboat"></div>
<div id="us_gunboat_2" class="piece us_gunboat"></div>
<div id="us_gunboat_3" class="piece us_gunboat"></div>
<div id="tr_corsair_1" class="piece tr_corsair"></div>
<div id="tr_corsair_2" class="piece tr_corsair"></div>
<div id="tr_corsair_3" class="piece tr_corsair"></div>
<div id="tr_corsair_4" class="piece tr_corsair"></div>
<div id="tr_corsair_5" class="piece tr_corsair"></div>
<div id="tr_corsair_6" class="piece tr_corsair"></div>
<div id="tr_corsair_7" class="piece tr_corsair"></div>
<div id="tr_corsair_8" class="piece tr_corsair"></div>
<div id="tr_corsair_9" class="piece tr_corsair"></div>
<div id="al_corsair_1" class="piece al_corsair"></div>
<div id="al_corsair_2" class="piece al_corsair"></div>
<div id="al_corsair_3" class="piece al_corsair"></div>
<div id="al_corsair_4" class="piece al_corsair"></div>
<div id="al_corsair_5" class="piece al_corsair"></div>
<div id="al_corsair_6" class="piece al_corsair"></div>
<div id="al_corsair_7" class="piece al_corsair"></div>
<div id="al_corsair_8" class="piece al_corsair"></div>
<div id="al_corsair_9" class="piece al_corsair"></div>
<div id="us_marine_1" class="piece us_marine"></div>
<div id="us_marine_2" class="piece us_marine"></div>
<div id="us_marine_3" class="piece us_marine"></div>
<div id="us_marine_4" class="piece us_marine"></div>
<div id="ar_infantry_1" class="piece ar_infantry"></div>
<div id="ar_infantry_2" class="piece ar_infantry"></div>
<div id="ar_infantry_3" class="piece ar_infantry"></div>
<div id="ar_infantry_4" class="piece ar_infantry"></div>
<div id="ar_infantry_5" class="piece ar_infantry"></div>
<div id="ar_infantry_6" class="piece ar_infantry"></div>
<div id="ar_infantry_7" class="piece ar_infantry"></div>
<div id="ar_infantry_8" class="piece ar_infantry"></div>
<div id="ar_infantry_9" class="piece ar_infantry"></div>
<div id="ar_infantry_10" class="piece ar_infantry"></div>
<div id="tr_infantry_1" class="piece tr_infantry"></div>
<div id="tr_infantry_2" class="piece tr_infantry"></div>
<div id="tr_infantry_3" class="piece tr_infantry"></div>
<div id="tr_infantry_4" class="piece tr_infantry"></div>
<div id="tr_infantry_5" class="piece tr_infantry"></div>
<div id="tr_infantry_6" class="piece tr_infantry"></div>
<div id="tr_infantry_7" class="piece tr_infantry"></div>
<div id="tr_infantry_8" class="piece tr_infantry"></div>
<div id="tr_infantry_9" class="piece tr_infantry"></div>
<div id="tr_infantry_10" class="piece tr_infantry"></div>
<div id="tr_infantry_11" class="piece tr_infantry"></div>
<div id="tr_infantry_12" class="piece tr_infantry"></div>
<div id="tr_infantry_13" class="piece tr_infantry"></div>
<div id="tr_infantry_14" class="piece tr_infantry"></div>
<div id="tr_infantry_15" class="piece tr_infantry"></div>
<div id="tr_infantry_16" class="piece tr_infantry"></div>
<div id="tr_infantry_17" class="piece tr_infantry"></div>
<div id="tr_infantry_18" class="piece tr_infantry"></div>
<div id="tr_infantry_19" class="piece tr_infantry"></div>
<div id="tr_infantry_20" class="piece tr_infantry"></div>
<div id="gold_1" class="piece gold"></div>
<div id="gold_2" class="piece gold"></div>
<div id="gold_3" class="piece gold"></div>
<div id="gold_4" class="piece gold"></div>
<div id="gold_5" class="piece gold"></div>
<div id="gold_6" class="piece gold"></div>
<div id="gold_7" class="piece gold"></div>
<div id="gold_8" class="piece gold"></div>
<div id="gold_9" class="piece gold"></div>
<div id="gold_10" class="piece gold"></div>
<div id="gold_11" class="piece gold"></div>
<div id="gold_12" class="piece gold"></div>
<div id="year" class="piece marker"></div>
<div id="season" class="piece marker"></div>
</div>
</div>
</div>

<div id="hand_cards" class="hand">
<div id="tr_card_4" class="card tr_card_4"></div>
<div id="tr_card_5" class="card tr_card_5"></div>
<div id="tr_card_6" class="card tr_card_6"></div>
<div id="tr_card_7" class="card tr_card_7"></div>
<div id="tr_card_8" class="card tr_card_8"></div>
<div id="tr_card_9" class="card tr_card_9"></div>
<div id="tr_card_10" class="card tr_card_10"></div>
<div id="tr_card_11" class="card tr_card_11"></div>
<div id="tr_card_12" class="card tr_card_12"></div>
<div id="tr_card_13" class="card tr_card_13"></div>
<div id="tr_card_14" class="card tr_card_14"></div>
<div id="tr_card_15" class="card tr_card_15"></div>
<div id="tr_card_16" class="card tr_card_16"></div>
<div id="tr_card_17" class="card tr_card_17"></div>
<div id="tr_card_18" class="card tr_card_18"></div>
<div id="tr_card_19" class="card tr_card_19"></div>
<div id="tr_card_20" class="card tr_card_20"></div>
<div id="tr_card_21" class="card tr_card_21"></div>
<div id="tr_card_22" class="card tr_card_22"></div>
<div id="tr_card_23" class="card tr_card_23"></div>
<div id="tr_card_24" class="card tr_card_24"></div>
<div id="tr_card_25" class="card tr_card_25"></div>
<div id="tr_card_26" class="card tr_card_26"></div>
<div id="tr_card_27" class="card tr_card_27"></div>
<div id="us_card_4" class="card us_card_4"></div>
<div id="us_card_5" class="card us_card_5"></div>
<div id="us_card_6" class="card us_card_6"></div>
<div id="us_card_7" class="card us_card_7"></div>
<div id="us_card_8" class="card us_card_8"></div>
<div id="us_card_9" class="card us_card_9"></div>
<div id="us_card_10" class="card us_card_10"></div>
<div id="us_card_11" class="card us_card_11"></div>
<div id="us_card_12" class="card us_card_12"></div>
<div id="us_card_13" class="card us_card_13"></div>
<div id="us_card_14" class="card us_card_14"></div>
<div id="us_card_15" class="card us_card_15"></div>
<div id="us_card_16" class="card us_card_16"></div>
<div id="us_card_17" class="card us_card_17"></div>
<div id="us_card_18" class="card us_card_18"></div>
<div id="us_card_19" class="card us_card_19"></div>
<div id="us_card_20" class="card us_card_20"></div>
<div id="us_card_21" class="card us_card_21"></div>
<div id="us_card_22" class="card us_card_22"></div>
<div id="us_card_23" class="card us_card_23"></div>
<div id="us_card_24" class="card us_card_24"></div>
<div id="us_card_25" class="card us_card_25"></div>
<div id="us_card_26" class="card us_card_26"></div>
<div id="us_card_27" class="card us_card_27"></div>
</div>
<div class="hand_separator"></div>
<div id="core_cards" class="hand">
<div id="tr_card_1" class="show card tr_card_1 tr_core"></div>
<div id="tr_card_2" class="show card tr_card_2 tr_core"></div>
<div id="tr_card_3" class="show card tr_card_3 tr_core"></div>
<div id="us_card_1" class="show card us_card_1 us_core"></div>
<div id="us_card_2" class="show card us_card_2 us_core"></div>
<div id="us_card_3" class="show card us_card_3 us_core"></div>
</div>

<div id="popup" onmouseleave="hide_popup_menu()">
<div id="menu_card_event" class="always" onclick="on_card_event()">Play Event</div>
<div id="menu_card_move_frigates" class="us_always" onclick="on_card_move_frigates()">Discard to move two frigates</div>
<div id="menu_card_build_gunboat" class="us_always" onclick="on_card_build_gunboat()">Discard to build a gunboat</div>
<div id="menu_card_pirate_raid" class="tr_always" onclick="on_card_pirate_raid()">Discard to pirate raid</div>
<div id="menu_card_build_corsair" class="tr_always" onclick="on_card_build_corsair()">Discard to build a corsair</div>
<div id="menu_card_take" onclick="on_card_take()">Place in hand</div>
</div>

	</div>

</div>
</body>