summaryrefslogtreecommitdiff
path: root/tpls/chat.html
blob: db34aaa81adb0d3be193a086546502a12e4d505a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html>
<head>
	<title>{{.Roomname}}</title>
	<script type="text/javascript" src="/static/jquery.min.js"></script>
	<script type="text/javascript" src="/static/chat.js"></script>
	<script type="text/javascript">$("document").ready(function(){RunChat("{{.Websock}}");});</script>
	<link rel="stylesheet" type="text/css" href="/static/chat.css" />
</head>
<body>
	
	<h1>{{.Roomname}}</h1>
	<div id="buddiescontainer">
		<h2>Users online</h2>
		<ul id="buddies"></ul>
	</div>
	<ul id="chatlog"></ul>
	<div id="chatinput">
		<input type="text" name="chattext" id="chattext"/>
		<button id="sendbtn">Chat</button>
	</div>
</body>
</html>