-
Notifications
You must be signed in to change notification settings - Fork 2
/
play.html
110 lines (107 loc) · 4.41 KB
/
play.html
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
<!DOCTYPE html>
<html>
<head>
<title>3manchess-web</title>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="css/style.css">
<script type="text/javascript" src="js/jquery-2.2.3.min.js"></script>
<script type="text/javascript" src="js/jcanvas.js"></script>
<script type="text/javascript" src="js/chess2.js"></script>
<script type="text/javascript" src="js/tools.js"></script>
<script type="text/javascript" src="js/client.js"></script>
<script type="text/javascript" src="js/figure.js"></script>
<script type="text/javascript" src="js/gameplay.js"></script>
<script type="text/javascript" src="js/state.js"></script>
<script type="text/javascript" src="js/tools.js"></script>
</head>
<body>
<!-- Google Tag Manager -->
<noscript><iframe src="http://www.googletagmanager.com/ns.html?id=GTM-5ZJ772"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<script>
(function(w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({
'gtm.start': new Date().getTime(),
event: 'gtm.js'
});
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s),
dl = l != 'dataLayer' ? '&l=' + l : '';
j.async = true;
j.src =
'http://www.googletagmanager.com/gtm.js?id=' + i + dl;
f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'dataLayer', 'GTM-5ZJ772');
</script>
<!-- End Google Tag Manager -->
<canvas id="board" width="850" height="850"></canvas>
<canvas id="pawns" width="850" height="850"></canvas>
<div>Kolumna:
<div id="col" class="lab">X</div>
</div>
<div>Pierścień:
<div id="row" class="lab">X</div>
</div>
<div class="gameforms">
<form id="game_form" class="gameform">
<div class="state">
<table class="alive">
<tr class="alive">
<td class="alive"><img class="alive" id="white"></td>
<td class="alive"><img class="alive" id="gray"></td>
<td class="alive"><img class="alive" id="black"></td>
</tr>
</table>
<table class="castling">
<tr class="castling">
<td class="castling"><img class="alive" id="cawk" width="30"></td>
<td class="castling"><img class="alive" id="cawq" width="30"></td>
<td class="castling"><img class="alive" id="cagk" width="30"></td>
<td class="castling"><img class="alive" id="cagq" width="30"></td>
<td class="castling"><img class="alive" id="cabk" width="30"></td>
<td class="castling"><img class="alive" id="cabq" width="30"></td>
</tr>
</table>
</div>
<label for="gameid_input" class="gameforms_label">Gameplay ID</label>
<input id="gameid_input" class="gameforms_input">
<button type="submit" id="form_submit" class="gameforms_button">Wyślij</button><br>
<div class="afterlist" id="afterlist">
</div>
</form>
<div class="gameform">
<button id="getbefore" class="aftbut">Before</button><button id="getafter" class="aftbut">After</button>
<label for="intervalms" class="gameforms_label">After Polling interval [ms]</label>
<input id="intervalms" class="gameforms_input">
<button id="stapoll" class="aftbut">Start</button><button id="stopoll" class="aftbut" disabled>Stop</button>
</div>
<hr class="gameforms_hr">
<form id="loginform" class="gameform">
<label for="logininput" class="gameforms_label">Login</label>
<input id="logininput" class="gameforms_input">
<label for="passwdinput" class="gameforms_label">Password</label>
<input id="passwdinput" type="password" class="gameforms_input">
<button type="submit" id="loginsubmit" class="gameforms_button">Zaloguj</button><br>
</form>
<hr class="gameforms_hr">
<div class="gameform">
<label for="userid" class="gameforms_label">UserID</label>
<input id="userid" disabled class="gameforms_input">
<label for="playerid" class="gameforms_label">PlayerID</label>
<input id="playerid" disabled class="gameforms_input">
</div>
<hr class="gameforms_hr">
<form id="newgameform" class="gameform">
<label for="whitenew" class="gameforms_label">White PlayerID</label>
<input id="whitenew" class="gameforms_input">
<label for="graynew" class="gameforms_label">Gray PlayerID</label>
<input id="graynew" class="gameforms_input">
<label for="blacknew" class="gameforms_label">Black PlayerID</label>
<input id="blacknew" class="gameforms_input">
<button type="submit" id="newgamesubmit" class="gameforms_button">Nowa gra</button><br>
</form>
</div>
<script type="text/javascript" src="js/main.js"></script>
</body>
</html>