Shuo/client/index.html

133 lines
3.1 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-04-07 21:19:20 +00:00
2014-03-16 20:07:27 +00:00
<title>Chat</title>
2014-04-07 21:19:20 +00:00
2014-03-14 19:03:25 +00:00
<meta charset="utf-8">
2014-03-17 00:54:58 +00:00
<meta name="viewport" content="width=device-width, user-scalable=no">
2014-04-07 21:19:20 +00:00
2014-03-14 19:03:25 +00:00
<link rel="stylesheet" href="/css/bootstrap.css">
<link rel="stylesheet" href="/css/style.css">
2014-04-07 21:19:20 +00:00
2014-03-05 13:46:16 +00:00
</head>
2014-03-04 17:22:06 +00:00
<body>
2014-03-17 00:54:58 +00:00
<div id="wrap">
<div id="viewport">
2014-04-07 21:19:20 +00:00
2014-03-16 19:00:57 +00:00
<aside id="sidebar">
2014-03-17 00:54:58 +00:00
<header class="header">
2014-04-07 21:19:20 +00:00
2014-03-16 19:00:57 +00:00
<ul class="nav nav-tabs">
<li class="active"><a href="#list" data-toggle="tab">Channels</a></li>
<li><a href="#settings" data-toggle="tab">Settings</a></li>
</ul>
2014-03-31 22:02:28 +00:00
2014-03-17 00:54:58 +00:00
</header>
<div class="tab-content">
2014-04-07 21:19:20 +00:00
2014-03-16 20:07:27 +00:00
<div id="list" class="tab-pane active"></div>
<div id="settings" class="tab-pane">
<div class="panel panel-default">
<div class="panel-heading">
Show/hide events
</div>
<div class="panel-body">
<input type="checkbox" value="join"/>
<input type="checkbox" value="part"/>
<input type="checkbox" value="nick"/>
<input type="checkbox" value="quit"/>
2014-04-08 14:18:06 +00:00
<input type="checkbox" value="mode"/>
<input type="checkbox" value="kick"/>
2014-03-16 20:07:27 +00:00
</div>
</div>
2014-03-16 19:00:57 +00:00
</div>
2014-04-07 21:19:20 +00:00
2014-03-17 00:54:58 +00:00
</div>
2014-03-16 19:00:57 +00:00
</aside>
2014-03-17 00:54:58 +00:00
<div id="chat">
<div id="windows">
</div>
</div>
</div>
</div>
<div id="scripts">
2014-04-07 21:19:20 +00:00
2014-03-17 16:24:32 +00:00
<script type="text/html" id="network">
2014-03-05 13:46:16 +00:00
{{#networks}}
2014-03-31 22:02:28 +00:00
<div id="network-{{id}}" class="network list-group">
2014-04-01 18:09:08 +00:00
{{> channels}}
2014-03-05 13:46:16 +00:00
</div>
{{/networks}}
</script>
2014-03-17 16:24:32 +00:00
<script type="text/html" id="channel">
{{#channels}}
2014-03-31 22:02:28 +00:00
<a href="{{name}}" id="channel-{{id}}" class="channel list-group-item">
2014-03-17 16:24:32 +00:00
<span class="badge pull-right"></span>
{{name}}
</a>
{{/channels}}
</script>
<script type="text/html" id="window">
2014-03-05 13:46:16 +00:00
{{#channels}}
2014-03-31 22:02:28 +00:00
<div id="window-{{id}}" class="window {{type}}">
2014-03-14 21:57:54 +00:00
<div class="title">
2014-03-19 00:52:09 +00:00
<div class="toggle">
2014-03-31 11:22:34 +00:00
<a href="#" class="left">Channels</a>
<a href="#" class="right">Users</a>
2014-03-19 00:52:09 +00:00
</div>
2014-03-14 21:57:54 +00:00
<h1>{{name}}</h1>
2014-04-01 18:09:08 +00:00
<button class="close btn btn-danger btn-sm ">
Leave
</button>
2014-03-14 21:57:54 +00:00
</div>
2014-03-05 13:46:16 +00:00
<div class="users">
2014-04-01 18:09:08 +00:00
{{> users}}
2014-03-05 13:46:16 +00:00
</div>
<div class="messages">
2014-04-01 18:09:08 +00:00
{{> messages}}
2014-03-05 13:46:16 +00:00
</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>
2014-03-17 16:24:32 +00:00
<script type="text/html" id="user">
2014-03-05 13:46:16 +00:00
{{#users}}
2014-03-24 15:47:29 +00:00
<a href="{{name}}" class="user">
2014-03-07 21:24:02 +00:00
{{mode}}{{name}}
2014-03-15 15:51:21 +00:00
</a>
2014-03-05 13:46:16 +00:00
{{/users}}
</script>
2014-03-17 16:24:32 +00:00
<script type="text/html" id="message">
2014-03-05 13:46:16 +00:00
{{#messages}}
2014-03-13 15:50:33 +00:00
<div class="message {{type}}">
2014-04-02 15:24:33 +00:00
<div class="time">{{time}}</div>
<div class="user">{{from}}</div>
2014-04-07 21:19:20 +00:00
<div class="type">{{type}}</div>
<div class="text">{{message}}</div>
2014-03-05 13:46:16 +00:00
</div>
{{/messages}}
</script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.0/jquery.cookie.min.js"></script>
2014-04-01 18:09:08 +00:00
<script src="//cdnjs.cloudflare.com/ajax/libs/mustache.js/0.7.2/mustache.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/URI.js/1.11.2/URI.min.js"></script>
2014-04-01 18:09:08 +00:00
2014-03-05 13:46:16 +00:00
<script src="/socket.io/socket.io.js"></script>
2014-03-16 19:00:57 +00:00
<script src="/js/lib/bootstrap.js"></script>
2014-04-07 21:19:20 +00:00
<script src="/js/lib/jquery.scrollGlue.js"></script>
<script src="/js/lib/jquery.tabComplete.js"></script>
2014-03-06 15:11:25 +00:00
<script src="/js/chat.js"></script>
2014-04-07 21:19:20 +00:00
2014-03-17 00:54:58 +00:00
</div>
2014-04-07 21:19:20 +00:00
2014-03-04 17:22:06 +00:00
</body>
</html>