blob: 09b9854cda4fe57c0320b079cf4b4558281a4fd5 (
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
|
<!DOCTYPE html>
<!-- vim:set nowrap: -->
<html lang="en">
<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>MARIA</title>
<link rel="icon" href="favicon/maria.png">
<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="cards.js"></script>
<script defer src="play.js"></script>
</head>
<body>
<div id="tooltip" class="hide"></div>
<header>
<div id="toolbar">
<details>
<summary><img src="/images/cog.svg"></summary>
<menu>
<li><a target="_blank" href="/maria/info/readme.html">Read me!</a>
<li class="separator">
<li><a target="_blank" href="/maria/info/MariaRules.pdf">Rules</a>
<li><a target="_blank" href="/maria/info/aid.html">Playing Aid</a>
<li><a target="_blank" href="/maria/info/cards.html">Political Cards</a>
</menu>
</details>
<button onclick="toggle_pieces()"><img src="/images/earth-africa-europe.svg"></button>
<button id="shift_button" onclick="toggle_shift()"><img src="/images/all-seeing-eye.svg"></button>
<details id="subsidy_menu">
<summary>
<img src="images/shaking-hands.svg">
</summary>
<menu>
<li id="propose_subsidy_menu" onclick="propose_subsidy()">Propose subsidy
<li id="cancel_subsidy_menu" onclick="cancel_subsidy()">Cancel subsidy
<li class="separator">
<li id="propose_deal_menu" onclick="propose_deal()">Propose deal
<li class="separator">
<li id="ping_menu" onclick="send_action('ping')">Ping player
</menu>
</details>
</div>
</header>
<aside>
<div id="roles"></div>
<div id="log"></div>
</aside>
<main>
<div id="mapwrap">
<div id="map">
<svg id="roads" width="2485" height="1654" style="position:absolute;z-index:1;pointer-events:none;"></svg>
<div id="spaces"></div>
<div id="markers"></div>
<div id="pieces"></div>
</div>
</div>
<!-- Political Display -->
<div id="political_panel" class="panel">
<div id="political_header" class="panel_header">Political Display</div>
<div id="political_body">
<div id="political_display">
<div id="pol_tracks"></div>
<div class="pc_pile card_pile" id="placed_prussia"></div>
<div class="pc_pile card_pile" id="placed_france"></div>
<div class="pc_pile card_pile" id="placed_pragmatic"></div>
<div class="pc_pile card_pile" id="placed_austria"></div>
</div>
<div style="display:flex;flex-wrap:wrap;gap:18px;margin:18px;">
<div id="pc_deck" class="card_pile"></div>
<div id="pc_show" style="display:flex;flex-wrap:wrap;gap:18px;">
</div>
</div>
<div class="deal" id="active_deal_list"></div>
<div class="deal" id="proposed_deal_list"></div>
</div>
</div>
<div id="power_panel_list">
<!-- Louis XV -->
<div id="hand_france_panel" class="panel">
<div id="hand_france_header" class="panel_header">France</div>
<div id="hand_france" class="panel_body">
</div>
</div>
<div id="hand_bavaria_panel" class="panel">
<div id="hand_bavaria_header" class="panel_header">Bavaria</div>
<div id="hand_bavaria" class="panel_body">
</div>
</div>
<!-- Frederick -->
<div id="hand_prussia_panel" class="panel">
<div id="hand_prussia_header" class="panel_header">Prussia</div>
<div id="hand_prussia" class="panel_body">
</div>
</div>
<div id="hand_saxony_panel" class="panel">
<div id="hand_saxony_header" class="panel_header">Saxony</div>
<div id="hand_saxony" class="panel_body">
</div>
</div>
<div id="hand_pragmatic_panel" class="panel">
<div id="hand_pragmatic_header" class="panel_header">Pragmatic Army</div>
<div id="hand_pragmatic" class="panel_body">
</div>
</div>
<!-- Maria Theresa -->
<div id="hand_austria_panel" class="panel">
<div id="hand_austria_header" class="panel_header">Austria</div>
<div id="hand_austria" class="panel_body">
</div>
</div>
</div>
<div id="discard_pile_panel" class="panel">
<div id="discard_pile_header" class="panel_header">Decks & Discard Piles</div>
<div id="discard_pile_body" class="panel_body">
<div class="card_pile" id="discard_1"></div>
<div class="card_pile" id="discard_2"></div>
<div class="card_pile" id="discard_3"></div>
<div class="card_pile" id="discard_4"></div>
</div>
</div>
</main>
<footer id="status"></footer>
<dialog id="propose_deal_dlog">
<form id="propose_deal_form">
<select name="a_power">
<option value="0">France</option>
<option value="1">Prussia</option>
<option value="2">Pragmatic Army</option>
<option value="3">Austria</option>
<option value="4">Bavaria</option>
<option value="5">Saxony</option>
</select>
<br>
<textarea name="a_promise" placeholder="Promise..." rows=3 cols=40></textarea>
<br><br>
<select name="b_power">
<option value="0">France</option>
<option value="1">Prussia</option>
<option value="2">Pragmatic Army</option>
<option value="3">Austria</option>
<option value="4">Bavaria</option>
<option value="5">Saxony</option>
</select>
<br>
<textarea name="b_promise" placeholder="Promise..." rows=3 cols=40></textarea>
<br><br>
Last until:
<br>
<select name="turn">
<option value="1">Turn 1</option>
<option value="2">Turn 2</option>
<option value="3">Turn 3</option>
<option value="5">Turn 4</option>
<option value="6">Turn 5</option>
<option value="7">Turn 6</option>
<option value="9">Turn 7</option>
<option value="10">Turn 8</option>
<option value="11">Turn 9</option>
<option value="13">Turn 10</option>
<option value="14">Turn 11</option>
<option value="15">Turn 12</option>
</select>
<br><br>
<div style="text-align:right">
<button onclick="propose_deal_cancel(event)">Cancel</button>
<button onclick="propose_deal_submit(event)">Submit</button>
</div>
</form>
</dialog>
</body>
|