hardlounge/client/index.html

68 lines
1.3 KiB
HTML
Raw Normal View History

2014-03-04 17:22:06 +00:00
<!doctype html>
<html>
2014-03-05 13:46:16 +00:00
<head>
<link rel="stylesheet" href="/css/style.css"/>
</head>
2014-03-04 17:22:06 +00:00
<body>
2014-03-05 13:46:16 +00:00
<aside id="sidebar"></aside>
<div id="chat"></div>
2014-03-04 17:22:06 +00:00
2014-03-05 13:46:16 +00:00
<script type="text/html" id="networks">
{{#networks}}
2014-03-06 15:11:25 +00:00
<div class="network" data-id="{{id}}">
2014-03-05 13:46:16 +00:00
{{#channels}}
2014-03-06 18:02:43 +00:00
<div class="channel" data-id="{{id}}">
2014-03-05 13:46:16 +00:00
{{name}}
</div>
{{/channels}}
</div>
{{/networks}}
</script>
2014-03-04 19:40:27 +00:00
2014-03-05 13:46:16 +00:00
<script type="text/html" id="channels">
{{#channels}}
<div class="window {{type}}" data-id="{{id}}">
<h1 class="title">{{name}}</h1>
<div class="users">
{{> users}}
</div>
<div class="messages">
{{> messages}}
</div>
<form onSubmit="return false;">
2014-03-06 15:11:25 +00:00
<input type="text" class="input" data-target="{{id}}"/>
2014-03-05 13:46:16 +00:00
<input type="submit" style="display: none;"/>
</form>
</div>
{{/channels}}
</script>
<script type="text/html" id="users">
{{#users}}
2014-03-12 18:06:08 +00:00
<div class="user">
2014-03-07 21:24:02 +00:00
{{mode}}{{name}}
2014-03-05 13:46:16 +00:00
</div>
{{/users}}
</script>
<script type="text/html" id="messages">
{{#messages}}
2014-03-13 15:50:33 +00:00
<div class="message {{type}}">
2014-03-05 13:46:16 +00:00
<span class="time">{{time}}</span>
<span class="user">{{user}}</span>
2014-03-13 15:50:33 +00:00
<span class="text">{{text}}</span>
2014-03-05 13:46:16 +00:00
</div>
{{/messages}}
</script>
<script src="/socket.io/socket.io.js"></script>
<script src="/js/lib/mustache.min.js"></script>
<script src="/js/lib/jquery-2.1.0.min.js"></script>
2014-03-06 15:11:25 +00:00
<script src="/js/chat.js"></script>
2014-03-04 17:22:06 +00:00
</body>
</html>