/
test-chat.html
65 lines (65 loc) · 1.19 KB
/
test-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
61
62
63
64
65
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script src="jquery-xpubsub.min.js"></script>
<script src="test-chat.js"></script>
<style>
.chatroom
{
float: left;
width: 300px;
}
</style>
</head>
<body>
<div class="chatroom">
<h2>
Room #1</h2>
<div>
<strong>Jack:</strong>
<input type="text" />
<button>
Send</button>
</div>
<div>
<strong>John:</strong>
<input type="text" />
<button>
Send</button>
</div>
<ul>
</ul>
</div>
<div class="chatroom">
<h2>
Room #2</h2>
<div>
<strong>Jim:</strong>
<input type="text" />
<button>
Send</button>
</div>
<div>
<strong>Jane:</strong>
<input type="text" />
<button>
Send</button>
</div>
<ul>
</ul>
</div>
<div class="chatroom" id="opRoom">
<h2>
OP monitor channel
</h2>
<div>
<strong>OP:</strong>
<input type="text" />
<button>
Broadcast</button>
</div>
<ul>
</ul>
</div>
</body>
</html>