Shuo/client/index.html

75 lines
1.6 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>
2014-03-14 19:03:25 +00:00
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="stylesheet" href="/css/bootstrap.css">
<link rel="stylesheet" href="/css/style.css">
2014-03-05 13:46:16 +00:00
</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-14 19:03:25 +00:00
<div class="network list-group" data-id="{{id}}">
2014-03-05 13:46:16 +00:00
{{#channels}}
2014-03-14 19:03:25 +00:00
<a href="" class="channel list-group-item" data-id="{{id}}">
2014-03-05 13:46:16 +00:00
{{name}}
2014-03-14 19:03:25 +00:00
</a>
2014-03-05 13:46:16 +00:00
{{/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}}">
2014-03-14 21:57:54 +00:00
<div class="title">
<h1>{{name}}</h1>
<button class="close btn btn-danger btn-sm ">Leave</button>
</div>
2014-03-05 13:46:16 +00:00
<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>
2014-03-14 21:57:54 +00:00
<span class="user">{{mode}}{{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>