summaryrefslogtreecommitdiff
path: root/play.html
blob: dcdefed66232d11cb9e713eb756c95b657435e4f (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
<!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>THE FIELD OF THE CLOTH OF GOLD</title>
<link rel="icon" href="favicon.png">
<link rel="stylesheet" href="/fonts/fonts.css">
<link rel="stylesheet" href="/common/play.css">
<script defer src="/common/play.js"></script>
<script defer src="play.js"></script>
<style>

main { background-color: dimgray }

#role_Red .role_name { background-color: salmon; }
#role_Blue .role_name { background-color: skyblue; }

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

#map {
	width: 1100px;
	height: 850px;
	background-image: url(map100.png);
}

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

.token {
	width: 58px;
	height: 64px;
	background-size: 58px 64px;
	filter: drop-shadow(0px 2px 4px #0008);
}

.tile {
	width: 75px;
	height: 75px;
	background-repeat: no-repeat;
	background-size: 50px 50px;
	background-position: center;
	border-width: 2px;
	border-style: solid;
	box-shadow: 0 0 0 1px #222, 1px 2px 4px #0008;
}

.token.white { background-image: url(images/token_white.svg) }
.token.red { background-image: url(images/token_red.svg) }
.token.blue { background-image: url(images/token_blue.svg) }

.tile.white { background-image: url(images/tile_white.png) }
.tile.red { background-image: url(images/tile_red.png) }
.tile.blue { background-image: url(images/tile_blue.png) }
.tile.gold { background-image: url(images/tile_gold.png) }
.tile.green { background-image: url(images/tile_green.png) }

.tile.red { background-color: hsl(0,90%,49%); border-color: hsl(0,90%,59%) hsl(0,90%,39%) hsl(0,90%,39%) hsl(0,90%,59%); }
.tile.white { background-color: hsl(0,0%,94%); border-color: hsl(0,0%,100%) hsl(0,0%,84%) hsl(0,0%,84%) hsl(0,0%,100%); }
.tile.blue { background-color: hsl(201,80%,47%); border-color: hsl(201,80%,57%) hsl(201,80%,37%) hsl(201,80%,37%) hsl(201,80%,57%); }
.tile.gold { background-color: hsl(50,81%,59%); border-color: hsl(50,81%,69%) hsl(50,81%,49%) hsl(50,81%,49%) hsl(50,81%,69%); }
.tile.green { background-color: hsl(125,21%,33%); border-color: hsl(125,21%,43%) hsl(125,21%,23%) hsl(125,21%,23%) hsl(125,21%,43%); }

.panel {
	max-width: 1100px;
	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: 20px;
}

</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</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>
	<div id="prompt"></div>
	<div id="actions"></div>
</header>

<aside>
	<div id="roles">
		<div class="role" id="role_Red">
			<div class="role_name">
				Red &#x2013;
				<span class="role_user"></span>
			</div>
		</div>
		<div class="role" id="role_Blue">
			<div class="role_name">
				Blue &#x2013;
				<span class="role_user"></span>
			</div>
		</div>
	</div>
	<div id="log"></div>
</aside>

<main>

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

<div id="token_white" class="token white" style="left:90px;top:135px;"></div>
<div id="token_red1" class="token red" style="left:200px"></div>
<div id="token_red2" class="token red" style="left:300px"></div>
<div id="token_red3" class="token red" style="left:400px"></div>
<div id="token_blue1" class="token blue" style="left:500px"></div>
<div id="token_blue2" class="token blue" style="left:600px"></div>
<div id="token_blue3" class="token blue" style="left:700px"></div>

</div>
</div>

<div id="hand_panel" class="panel">
<div id="hand_header" class="panel_header">Hand</div>
<div id="hand" class="panel_body">

<div class="tile red" style="left:198px;top:300px"></div>
<div class="tile blue" style="left:338px;top:300px"></div>
<div class="tile green" style="left:478px;top:300px"></div>
<div class="tile white" style="left:618px;top:300px"></div>
<div class="tile gold" style="left:758px;top:300px"></div>

</div>
</div>

</main>

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

</body>