summaryrefslogtreecommitdiff
path: root/tpls
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2014-03-27 12:28:05 +0100
committerKevin Chabowski <kevin@kch42.de>2014-03-27 23:51:07 +0100
commitdfd11c94c1ad5261caa43128a39fcce550edf61d (patch)
treeb80458e610077b17da9815d14f71f590d4de56af /tpls
parentc35e43e9cf0f915236016a3f73a6ee6bc9962e0b (diff)
downloadsimplechat-dfd11c94c1ad5261caa43128a39fcce550edf61d.tar.gz
simplechat-dfd11c94c1ad5261caa43128a39fcce550edf61d.tar.bz2
simplechat-dfd11c94c1ad5261caa43128a39fcce550edf61d.zip
Chat now works on the client side
Diffstat (limited to 'tpls')
-rw-r--r--tpls/chat.html16
1 files changed, 13 insertions, 3 deletions
diff --git a/tpls/chat.html b/tpls/chat.html
index c107b49..27ad69f 100644
--- a/tpls/chat.html
+++ b/tpls/chat.html
@@ -1,9 +1,19 @@
<!DOCTYPE html>
<html>
<head>
- <title></title>
+ <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/style.css" />
</head>
<body>
-{{ .Websock }}
+ <h1>{{.Roomname}}</h1>
+ <ul id="buddies"></ul>
+ <ul id="chatlog"></ul>
+ <div id="chatinput">
+ <input type="text" name="chattext" id="chattext"/>
+ <button id="sendbtn">Chat</button>
+ </div>
</body>
-</html> \ No newline at end of file
+</html>