-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathchat.html
60 lines (53 loc) · 1.37 KB
/
chat.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
<!DOCTYPE html>
<html>
<head>
<title>WebSocket Test</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.3/require.min.js"></script>
<!-- <script src="libs/require.js"></script> -->
<script>
requirejs.config({
enforceDefine: true,
paths: {
app: [ 'build/app' ]
}
});
</script>
<link rel="stylesheet" href="build/style.css">
</head>
<body class="init">
<header>
<div class="site-wrapper site-padding">
<h1>Simple Chat</h1>
<div class="constatus offline">Offline</div>
</div>
</header>
<div class="site-wrapper site-padding">
<div class="view join">
<div class="">
<input type="text" id="join" placeholder="Join chat as..." autofocus="">
</div>
</div>
<div class="view connected">
<div class="msgwrapper">
<div id="frm">
<input type="text" autocomplete="false" id="inp" disabled=""
placeholder="Write something...">
</div>
<div id="console"></div>
</div>
<div id="online" class="online">
<h2>Who's Online</h2>
<ul><li>No one</li></ul>
</div>
</div>
<div class="view connection-lost">
<div class="">Server shut down the connection...</div>
</div>
</div>
<script>
require(['build/app'], function(app) {
app.run();
});
</script>
</body>
</html>