Shuo/client/index.html

110 lines
2.2 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
<title>Shout — The modern IRC client</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-05-01 14:28:04 +00:00
<link rel="stylesheet" href="/normalize.css">
2014-04-22 17:57:16 +00:00
<link rel="stylesheet" href="/style.css">
2014-04-24 23:57:51 +00:00
<link rel="stylesheet" href="<%= typeof theme !== 'undefined' ? theme : '' %>">
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-04-22 17:57:16 +00:00
<aside id="sidebar"></aside>
<div id="chat"></div>
2014-03-17 00:54:58 +00:00
2014-04-30 15:14:22 +00:00
<footer id="footer">
<a href="<%= homepage %>" target="_blank" class="btn">
<strong><%= name %></strong>
<%= version %>
</a>
</footer>
2014-03-17 00:54:58 +00:00
</div>
</div>
<script type="text/html" id="networks">
2014-04-20 21:48:05 +00:00
{{#each networks}}
<div id="network-{{id}}" data-nick="{{nick}}" class="network">
2014-04-30 15:14:22 +00:00
<h2 class="header">{{host}}</h2>
2014-04-20 21:48:05 +00:00
{{partial "#channels"}}
</div>
2014-04-20 21:48:05 +00:00
{{/each}}
2014-03-05 13:46:16 +00:00
</script>
2014-04-20 21:48:05 +00:00
<script type="text/html" id="channels">
2014-04-20 21:48:05 +00:00
{{#each channels}}
2014-04-22 17:57:16 +00:00
<button id="channel-{{id}}" class="channel">
2014-03-17 16:24:32 +00:00
{{name}}
2014-04-22 17:57:16 +00:00
</button>
2014-04-20 21:48:05 +00:00
{{/each}}
2014-03-17 16:24:32 +00:00
</script>
2014-04-20 21:48:05 +00:00
<script type="text/html" id="windows">
2014-04-20 21:48:05 +00:00
{{#each windows}}
2014-03-31 22:02:28 +00:00
<div id="window-{{id}}" class="window {{type}}">
2014-03-05 13:46:16 +00:00
<div class="users">
2014-04-20 21:48:05 +00:00
{{partial "#users"}}
2014-03-05 13:46:16 +00:00
</div>
<div class="messages">
2014-04-26 19:56:04 +00:00
<div class="show-more">
2014-04-30 15:14:22 +00:00
<button class="btn">Show more</button>
2014-04-26 19:56:04 +00:00
</div>
2014-04-20 21:48:05 +00:00
{{partial "#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>
2014-04-20 21:48:05 +00:00
{{/each}}
2014-03-05 13:46:16 +00:00
</script>
2014-04-20 21:48:05 +00:00
<script type="text/html" id="users">
2014-04-14 15:18:18 +00:00
<div class="count">
Users: {{users.length}}
</div>
2014-04-20 21:48:05 +00:00
{{#each users}}
2014-04-22 17:57:16 +00:00
<button class="user">
2014-04-29 13:01:30 +00:00
{{mode}}{{name}}
2014-04-22 17:57:16 +00:00
</button>
2014-04-20 21:48:05 +00:00
{{/each}}
2014-03-05 13:46:16 +00:00
</script>
2014-04-20 21:48:05 +00:00
<script type="text/html" id="messages">
2014-04-30 15:14:22 +00:00
{{#slice messages limit="20"}}
<div class="msg {{type}}">
2014-04-22 17:57:16 +00:00
<span class="time">
{{time}}
</span>
<button class="user">
{{from}}
</button>
<span class="text">
2014-04-30 15:14:22 +00:00
{{#if type}}
<em class="type">{{type}}</em>
{{/if}}
2014-04-22 17:57:16 +00:00
{{{uri text}}}
</span>
2014-04-30 15:14:22 +00:00
2014-03-05 13:46:16 +00:00
</div>
2014-04-26 15:26:30 +00:00
{{/slice}}
2014-03-05 13:46:16 +00:00
</script>
2014-04-22 14:48:13 +00:00
<script src="/js/jquery.js"></script>
<script src="/js/jquery.plugins.js"></script>
<script src="/js/uri.js"></script>
<script src="/js/handlebars.js"></script>
2014-03-05 13:46:16 +00:00
<script src="/socket.io/socket.io.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-04 17:22:06 +00:00
</body>
</html>