-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
51 lines (46 loc) · 1.83 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Hairy Robot</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="socket.io.js"></script>
<script src="client.js"></script>
</head>
<body>
<div id="login">
<p>Name: <input id="username" type="text" autofocus style="width: 200px;" /></p>
</div>
<div id="game" style="display: none;">
<div id="main" style="border: 1px solid gray; display: inline-block;">
<canvas id="canvas" style="width: 800px; height: 600px;"></canvas>
</div>
<div id="right" style="width: 400px; display: inline-block; vertical-align: top;">
<div style="display: inline-block;">
<p>
Life:<br />
Shields:<br />
Guns:
</p>
</div>
<div id="stats" style="display: inline-block;">
<div id="life-outer" style="width: 100px; height: 1em; border: 1px solid black;">
<div id="life" style="height: 100%; background: lime;"></div>
</div>
<div id="shield-outer" style="width: 100px; height: 1em; border: 1px solid black;">
<div id="shield" style="height: 100%; background: turquoise;"></div>
</div>
<div id="guns-outer">
<span id="guns">1</span>
</div>
</div>
<div id="scores" style="padding: 1em; width: 90%; height: 28%; border: 1px solid gray;"></div>
<div id="messages" style="padding: 1em; width: 90%; height: 78%; border: 1px solid gray;"></div>
<div id="chat" style="padding: 1em; width: 90%; heigh: 1.5em;">
<input id="textInput" type="text" style="width: 100%; display: none;" />
<p>Press "t" to chat</p>
</div>
</div>
</div>
</body>
</html>