summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authorJoe Robinson <joe@lc8n.com>2016-03-26 06:41:09 +0100
committerJoe Robinson <joe@lc8n.com>2016-03-26 06:41:09 +0100
commitfcaeaa8655bac6a33755de99d14ae979c07d3be7 (patch)
tree1490a0d00355518f3df92e349eb8e40b68c9d9fd /index.html
parentb41a6935b738dd01acb84bab8014b68786c4a608 (diff)
Joins, parts, PMs, inline image/video/audio/youtube, server status messages, I should commit more often
Diffstat (limited to 'index.html')
-rw-r--r--index.html18
1 files changed, 13 insertions, 5 deletions
diff --git a/index.html b/index.html
index 081ea9e..1d39298 100644
--- a/index.html
+++ b/index.html
@@ -6,17 +6,25 @@
<body class="container">
<div id="chan-container">
<div class="ui pointing secondary menu">
+ <a class='active item' data-id='0' data-tab='status'>status</a>
+ </div>
+ <div class='ui active tab' data-id='0' data-tab='status'>
+ <div class='ui segment chat' data-id='0' data-tab='status'></div>
</div>
-
</div>
- <div id="message">
- <div class="ui input" id="message-container">
- <input placeholder="Message" id="send-message" type="text">
- </div>
+ </div>
+ <div id="message">
+ <div class="ui input" id="message-container">
+ <input placeholder="Message" id="send-message" type="text" autofocus="true">
</div>
+ </div>
<script>
window.$ = window.jQuery = require('./lib/jquery-2.2.2.js');
var blachat = require("./index.js");
+ function scrollToTop(channel) {
+ var chatTab = $("[data-tab=chan-"+ channel +"].chat");
+ chatTab.scrollTop(chatTab.prop('scrollHeight'));
+ }
</script>
<link rel="stylesheet" type="text/css" href="lib/semantic/dist/semantic.min.css">
<link rel="stylesheet" type="text/css" href="style.css">