-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
25 lines (25 loc) · 968 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<title>JSMUD</title>
<script type="text/javascript" src="/socket.io/socket.io.js"></script>
<script type="text/javascript" src="/client.js"></script>
<script type="text/javascript">
function load ( i, u ) {
var client = new Client( i, u );
client.focus();
var focuser = client.focus.bind( client );
addEventListener( "keypress", focuser );
addEventListener( "touchup", focuser );
addEventListener( "mouseup", focuser );
}
</script>
<link type="text/css" rel="stylesheet" href="style.css">
</head>
<body onload="load( 'input', 'playerStatus' )">
<div id="news"></div>
<span id="playerStatus"></span><input type="text" id="input" autocomplete="off" placeholder="<disconnected>">
</body>
</html>