summaryrefslogtreecommitdiff
path: root/play.html
blob: 42e0482c1132931b220704f650ada8d6c89ec7a0 (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
<!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>VOTES FOR WOMEN</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">
<script defer src="/common/client.js"></script>
<script defer src="play.js"></script>
<style>

main {
	background-color: slategray;
}

#mapwrap {
	width: 1100px;
	height: 850px;
	box-shadow: 0 1px 8px #0008;
}

#map {
	width: 1100px;
	height: 850px;
	background-color: #f0e7d0;
	background-image: url(map.webp);
	background-size: 1100px 850px;
}

#map-texture {
	position: absolute;
	width: 1100px;
	height: 850px;
	background-image: url(map-texture.jpg);
	background-size: 1100px 850px;
	mix-blend-mode: multiply;
}

svg {
	position: absolute;
}

.piece {
	position: absolute;
	background-repeat: no-repeat;
	background-size: contain;
	filter: drop-shadow(0px 1px 2px #0004);
}

.piece.action {
	filter:
		drop-shadow(2px 0px 0px white)
		drop-shadow(0px 2px 0px white)
		drop-shadow(-2px 0px 0px white)
		drop-shadow(0px -2px 0px white);
}

.piece.cube {
	width: 14px;
	height: 14px;
	border: 1px solid black;
}

.piece.turn {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 1px solid black;
	background-color: #666;
}

.piece.purple.cube { background-color: #6d5798; }
.piece.yellow.cube { background-color: #fec36d; }
.piece.red.cube { background-color: #e06136; }

.piece.congress { width: 32px; height: 32px; background-image: url(pieces/cog.svg); }
.piece.no { width: 42px; height: 32px; background-image: url(pieces/no.svg); }
.piece.yes { width: 42px; height: 32px; background-image: url(pieces/yes.svg); }
.piece.turn3d { width: 33px; height: 36px; background-image: url(pieces/turn.svg); }
.piece.purple1 { width: 36px; height: 50px; background-image: url(pieces/purple1.svg); }
.piece.purple2 { width: 36px; height: 50px; background-image: url(pieces/purple2.svg); }
.piece.yellow1 { width: 36px; height: 50px; background-image: url(pieces/yellow1.svg); }
.piece.yellow2 { width: 36px; height: 50px; background-image: url(pieces/yellow2.svg); }
.piece.red1 { width: 36px; height: 50px; background-image: url(pieces/red1.svg); }
.piece.red2 { width: 36px; height: 50px; background-image: url(pieces/red2.svg); }
.piece.red3 { width: 36px; height: 50px; background-image: url(pieces/red3.svg); }

</style>
</head>
<body>

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

<menu id="popup">
	<li class="title">TITLE
	<li class="separator">
	<li data-action="card_event"> &#x1f3b4; &nbsp; Event
</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><a href="info/cards.html" target="_blank">Cards</a>
				<li class="resign separator">
				<li class="resign" onclick="confirm_resign()">Resign
			</menu>
		</details>
	</div>
</header>

<aside>
	<div id="roles">
		<div class="role" id="role_Suffragist">
			<div class="role_name">
				Suffragist
				<div class="role_user">-</div>
			</div>
		</div>
		<div class="role" id="role_Opposition">
			<div class="role_name">
				Opposition
				<div class="role_user">-</div>
			</div>
		</div>
		<div class="card_info"></div></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="1100px" height="850px" viewBox="0 0 2200 1700">
		</svg>

		<div id="turn" class="piece turn" style="left:800px;top:765px;"></div>
		<div class="piece congress" style="left:500px;top:765px;"></div>
		<div class="piece red1" style="left:350px;top:100px;"></div>
		<div class="piece red2 action" style="left:450px;top:175px;"></div>
		<div class="piece red3" style="left:550px;top:150px;"></div>
		<div class="piece purple1" style="left:250px;top:100px;"></div>
		<div class="piece purple2" style="left:250px;top:200px;"></div>
		<div class="piece yellow1" style="left:300px;top:100px;"></div>
		<div class="piece yellow2" style="left:300px;top:200px;"></div>

		<div class="piece yes" style="left:500px;top:400px;"></div>
		<div class="piece no" style="left:350px;top:400px;"></div>

		<div class="piece cube red" style="left:100px;top:150px;"></div>
		<div class="piece cube red" style="left:120px;top:150px;"></div>
		<div class="piece cube red" style="left:140px;top:150px;"></div>
		<div class="piece cube red" style="left:160px;top:150px;"></div>
		<div class="piece cube yellow" style="left:100px;top:170px;"></div>
		<div class="piece cube yellow" style="left:120px;top:170px;"></div>
		<div class="piece cube yellow" style="left:140px;top:170px;"></div>
		<div class="piece cube purple" style="left:100px;top:190px;"></div>
		<div class="piece cube purple" style="left:120px;top:190px;"></div>
		<div class="piece cube purple" style="left:140px;top:190px;"></div>
		<div class="piece cube purple" style="left:160px;top:190px;"></div>

	</div>
	</div>

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

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

</main>

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

</body>