-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
69 lines (56 loc) · 2.23 KB
/
index.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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Chapayev</title>
<link rel="stylesheet" href="css/main.css"/>
<script src="lib/jquery.js"></script>
<script src="lib/jquery.tmpl.js"></script>
<script src="lib/knockout.js"></script>
<script src="lib/raphael.js"></script>
<script src="lib/sylvester.js"></script>
<script src="lib/socket.io.js"></script>
<script src="js/utils.js"></script>
<script src="js/collision.js"></script>
<script src="js/socket.js"></script>
<script src="js/bot.js"></script>
<script src="js/main.js"></script>
<!-- Knockout.js templates -->
<script id="tplPlayers" type="text/html">
<li class="player" data-bind="click: function() { CH.invite(name) }">${name}</li>
</script>
</head>
<body>
<div id="holder">
</div>
<div id="info">
<div id="status-block">
Status:
<span id="status" data-bind="text: status, style: {color: status() == 'connected' ? 'green' : 'red'}"></span>
</div>
<span id="redResult" class="result" data-bind="text: redResult">lost</span>
<span id="redNick" class="nick" data-bind="text: redNick"></span>
<span id="redScore" class="score" data-bind="text: red().length"></span>
<span id="whiteScore" class="score" data-bind="text: white().length"></span>
<span id="whiteNick" class="nick" data-bind="text: whiteNick"></span>
<span id="whiteResult" class="result" data-bind="text: whiteResult">won</span>
<div id="bot-block">
<span id="botButton" class="player" onClick="CH.playWithBot();">Play with bot</span>
</div>
<div id="current-block">
Current move:
<span id="currentMove" data-bind="text: currentMove, style: {color: currentMove()}"></span>
</div>
</div>
<div id="console">
<textarea id="out" class="control" readonly="true"></textarea>
<input type="text" id="in" class="control">
</div>
<ul id="players" data-bind="template: {
name: 'tplPlayers',
foreach: players }">
</ul>
<!-- afterAdd: function(elem) { $(elem).hide().fadeIn(1500) } }"> -->
<!-- beforeRemove: function(elem) { $(elem).fadeOut(1500) }, -->
</body>
</html>