summaryrefslogtreecommitdiff
path: root/play.html
blob: 9307e549f8b051e75c6c607038ef24674fcc1217 (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
<!DOCTYPE html>
<!-- vim:set nowrap: -->
<html>
<head>
<meta name="viewport" content="width=device-width, height=device-height, user-scalable=no, interactive-widget=resizes-content, viewport-fit=cover">
<meta name="theme-color" content="#444">
<meta charset="UTF-8">
<title>SHORES OF TRIPOLI</title>
<link rel="icon" href="Flag_of_Tripoli_18th_century.svg">
<link rel="stylesheet" href="/fonts/fonts.css">
<link rel="stylesheet" href="/common/client.css">
<link rel="stylesheet" href="play.css">
<script defer src="/common/client.js"></script>
<script defer src="data.js"></script>
<script defer src="play.js"></script>
</head>
<body>

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

<menu id="us_popup">
	<li class="title">TITLE
	<li class="separator">
	<li data-action="card_event"> &#x1f3b4; &nbsp; Event
	<li data-action="card_move_frigates"> &#x26f5; &nbsp; Move two frigates
	<li data-action="card_build_gunboat"> &#x1f528; &nbsp; Build a gunboat
	<li data-action="card_take"> &#x270b; &nbsp; Place in hand
</menu>

<menu id="tr_popup">
	<li class="title">TITLE
	<li class="separator">
	<li data-action="card_event"> &#x1f3b4; &nbsp; Event
	<li data-action="card_pirate_raid"> &#x1f6a3; &nbsp; Pirate raid
	<li data-action="card_build_corsair"> &#x1f528; &nbsp; Build a corsair
	<li data-action="card_take"> &#x270b; &nbsp; Place in hand
</menu>

<header>
	<div id="toolbar">
		<details>
			<summary><img src="/images/cog.svg"></summary>
			<menu>
				<li><a href="info/rules.html" target="_blank">Rules</a>
				<li><a href="info/history.html" target="_blank">History</a>
				<li class="separator">
				<li><a href="info/tr_cards.html" target="_blank">Tripolitan Cards</a>
				<li><a href="info/us_cards.html" target="_blank">United States Cards</a>
			</menu>
		</details>
	</div>
</header>

<aside>
	<div id="roles">
		<div class="role" id="role_United_States">
			<div class="role_name">United States</div>
			<div class="role_stat" id="us_score">30</div>
			<div class="role_user">-</div>
			<div class="role_info" id="us_info">Hand: X / Draw: X / Discard: X</div>
		</div>
		<div class="role" id="role_Tripolitania">
			<div class="role_name">Tripolitania</div>
			<div class="role_stat" id="tr_score">0</div>
			<div class="role_user">-</div>
			<div class="role_info" id="tr_info">Hand: X / Draw: X / Discard: X</div>
		</div>
	</div>
	<div id="turn_info"><div id="active_card" class="card show blank"></div></div>
	<div id="log"></div>
</aside>

<main data-min-zoom="0.75" data-max-zoom="1.5" onclick="hide_popup_menu()">

<div id="mapwrap">
<div id="map">
<svg id="svgmap" width="1650px" height="532px" viewBox="0 0 2475 798">
<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 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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>

<br><br><br>
<br><br><br>

</main>

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

</body>