Shuo/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}}
<div class="channel {{type}}" data-id="{{id}}">
{{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}}
<div class="user" data-id="{{id}}">
{{name}}
</div>
{{/users}}
</script>
<script type="text/html" id="messages">
{{#messages}}
<div class="message">
<span class="time">{{time}}</span>
<span class="user">{{user}}</span>
{{text}}
</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>