-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
71 lines (50 loc) · 3.93 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
70
71
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>fdx</title>
<style>
canvas {
width: 100%;
height: 100%;
position: absolute;
left: 0px; bottom: 0px;
margin:0;padding: 0;
}
html,body {
overflow-y: hidden;
overflow-x: hidden;
height: 100%;
}
body {
position: relative;
margin:0;padding: 0;
}
</style>
<script src="/socket.io/socket.io.js"></script>
</head>
<body>
<canvas id="canvas"></canvas>
<input type="text" id="chatbox" name="chatbox" style="position: absolute; z-index: 1; left: 8px; bottom: 16px; font-size:14px;height:14px;width:100px;">
<input id = "chatconfirm" onclick="socket.emit('chat','< ' + pl.name + ' > '+document.getElementById('chatbox').value);document.getElementById('chatbox').value='';" type="submit" value="chat" style="position: absolute; z-index: 1; left: 116px;font-size:14px; bottom: 16px; width:50px; height:20px;">
<p id="ctxt0" style=" bolder;position: absolute; left: 8px; bottom: 48px; font-size:14px;height:14px; filter: invert(1);mix-blend-mode: difference;" ></p>
<p id="ctxt1" style=" bolder;position: absolute; left: 8px; bottom: 64px; font-size:14px;height:14px; filter: invert(1);mix-blend-mode: difference;"></p>
<p id="ctxt2" style=" bolder;position: absolute; left: 8px; bottom: 80px; font-size:14px;height:14px; filter: invert(1);mix-blend-mode: difference;"></p>
<p id="ctxt3" style=" bolder;position: absolute; left: 8px; bottom: 96px; font-size:14px;height:14px; filter: invert(1);mix-blend-mode: difference;"></p>
<p id="ctxt4" style=" bolder;position: absolute; left: 8px; bottom: 112px; font-size:14px;height:14px; filter: invert(1);mix-blend-mode: difference;"></p>
<p id="board0" style=" bolder;position: absolute; right: 8px; top: 48px; font-size:14px;height:14px; filter: invert(1);mix-blend-mode: difference;" ></p>
<p id="board1" style=" bolder;position: absolute; right: 8px; top: 64px; font-size:14px;height:14px; filter: invert(1);mix-blend-mode: difference;"></p>
<p id="board2" style=" bolder;position: absolute; right: 8px; top: 80px; font-size:14px;height:14px; filter: invert(1);mix-blend-mode: difference;"></p>
<p id="board3" style=" bolder;position: absolute; right: 8px; top: 96px; font-size:14px;height:14px; filter: invert(1);mix-blend-mode: difference;"></p>
<p id="board4" style=" bolder;position: absolute; right: 8px; top: 112px; font-size:14px;height:14px; filter: invert(1);mix-blend-mode: difference;"></p>
<p id="hp" style=" bolder;position: absolute; right: 8px; bottom: 64px; font-size:32px; filter: invert(1);mix-blend-mode: difference;"></p>
<p id="name" style=" bolder;position: absolute; right: 8px; bottom: 32px; font-size:32px; filter: invert(1);mix-blend-mode: difference;"></p>
<p id="points" style=" bolder;position: absolute; right: 8px; bottom: 0px; font-size:32px;filter: invert(1);mix-blend-mode: difference;"></p>
<p id="team" style=" bolder;position: absolute; right: 8px; bottom: 96px; font-size:32px; filter: invert(1);mix-blend-mode: difference;"></p>
<input type="text" id="teamname" name="join/make team" style="position: absolute; z-index: 1; right: 120px; top: 16px; font-size:14px;height:14px;width:100px;">
<input onclick="if (document.getElementById('teamname').value=='')pl.team=null; else pl.team=document.getElementById('teamname').value;document.getElementById('teamname').value='';" type="submit" value="join/make team" style="position: absolute; z-index: 1; right: 8px;font-size:14px; top: 16px; width:110px; height:20px;">
<div style = "position: absolute;width: 200px; height: 150px; line-height: 1em; overflow:scroll; border: thin #000 solid; padding: 5px;position:absolute;left:105px;top:325px" id="teammembers">
</div>
</body>
<script src="/static/game.js"></script>
</html>