Shuo/client/index.html

189 lines
4.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-14 19:03:25 +00:00
<meta charset="utf-8">
2014-05-31 14:03:58 +00:00
<meta name="viewport" content="width=device-width, user-scalable=no, minimal-ui">
2014-06-03 00:27:03 +00:00
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Shout</title>
2014-04-07 21:19:20 +00:00
2014-05-02 17:46:18 +00:00
<link rel="stylesheet" href="/css/normalize.css">
2014-06-22 20:11:03 +00:00
<link rel="stylesheet" href="/css/icons/octicons.css">
2014-05-02 17:46:18 +00:00
<link rel="stylesheet" href="/css/style.css">
2014-06-17 16:34:13 +00:00
<link rel="stylesheet" href="<%= typeof theme !== "undefined" ? theme : "" %>">
2014-04-07 21:19:20 +00:00
2014-06-16 19:28:53 +00:00
<link rel="apple-touch-icon" sizes="144x144" href="/img/apple-icon-144x144.png" />
2014-06-17 21:08:54 +00:00
<link rel="shortcut icon" href="/img/favicon.png">
2014-06-16 19:28:53 +00:00
2014-03-05 13:46:16 +00:00
</head>
2014-06-15 16:10:20 +00:00
<body class="preload">
2014-03-17 00:54:58 +00:00
2014-05-28 20:57:39 +00:00
<div id="wrap">
2014-05-30 00:23:23 +00:00
<div id="viewport">
2014-05-02 17:46:18 +00:00
<aside id="sidebar">
2014-05-28 20:57:39 +00:00
<section>
<h1>Shout</h1>
2014-06-22 20:11:03 +00:00
<a href="#settings">
<i class="octicon octicon-clippy"></i>
Settings
</a>
2014-06-15 21:45:16 +00:00
<% if (password) { %>
2014-06-22 20:11:03 +00:00
<a id="login" href="#sign-in">
<i class="octicon octicon-sign-in"></i>
Sign in
</a>
<a id="logout" href="" style="display: none;">
<i class="octicon octicon-sign-out"></i>
Sign out
</a>
2014-06-15 21:45:16 +00:00
<% } %>
2014-05-28 20:57:39 +00:00
</section>
2014-06-21 19:39:51 +00:00
<div id="networks"></div>
<footer class="footer">
<small>
Shout <%= version %>
</small>
</footer>
2014-05-02 17:46:18 +00:00
</aside>
<div id="main">
<div id="windows">
2014-06-22 20:11:03 +00:00
<div id="settings" class="window">
<div class="wrap">
<h1>Settings</h1>
</div>
</div>
2014-06-15 17:26:05 +00:00
<div id="sign-in" class="window">
<div class="wrap">
<h1>Shout</h1>
<h2>You need to sign in to continue.</h2>
<form id="sign-in-form" method="post">
<h3>Password:</h3>
2014-06-15 21:45:16 +00:00
<input id="sign-in-input" type="password" autofocus>
2014-06-15 17:26:05 +00:00
<button type="submit" class="btn">
Sign in
</button>
</form>
2014-06-15 16:10:20 +00:00
</div>
2014-05-22 23:14:01 +00:00
</div>
2014-06-15 17:26:05 +00:00
</div>
2014-05-22 23:14:01 +00:00
<div id="chat">
2014-05-02 17:46:18 +00:00
</div>
</div>
</div>
2014-05-28 20:57:39 +00:00
</div>
2014-04-20 21:48:05 +00:00
2014-05-02 17:46:18 +00:00
<div id="templates">
<script type="text/html" class="networks">
{{#each networks}}
2014-05-28 20:57:39 +00:00
<section id="network-{{id}}" class="network">
2014-05-02 17:46:18 +00:00
{{partial "channels"}}
2014-05-28 20:57:39 +00:00
</section>
2014-05-02 17:46:18 +00:00
{{/each}}
</script>
<script type="text/html" class="channels">
{{#each channels}}
2014-06-21 20:37:21 +00:00
<a href="#window-{{id}}" id="channel-{{id}}" class="{{type}}" data-name="{{name}}">
2014-05-02 17:46:18 +00:00
<span class="badge"></span>
2014-05-24 21:56:28 +00:00
<span class="close"></span>
2014-05-02 17:46:18 +00:00
{{name}}
2014-05-28 20:57:39 +00:00
</a>
2014-05-02 17:46:18 +00:00
{{/each}}
</script>
<script type="text/html" class="windows">
{{#each windows}}
2014-06-02 21:08:03 +00:00
<div id="window-{{id}}" class="window {{type}}" data-id="{{id}}">
2014-05-30 00:23:23 +00:00
<div class="sidebar">
2014-06-09 19:39:19 +00:00
{{partial "meta"}}
2014-05-30 00:23:23 +00:00
<ul class="users">
{{partial "users"}}
</ul>
</div>
<div class="chat">
2014-06-16 13:13:43 +00:00
{{#equal 100 messages.length}}
2014-06-02 21:08:03 +00:00
<button class="show-more" data-id="{{id}}">
Show more
</button>
2014-06-14 20:28:17 +00:00
{{/equal}}
2014-05-30 00:23:23 +00:00
<div class="messages">
{{partial "messages"}}
</div>
2014-04-26 19:56:04 +00:00
</div>
2014-05-30 00:23:23 +00:00
<header class="header">
2014-06-21 19:39:51 +00:00
<button class="lt">
2014-06-22 20:11:03 +00:00
<i class="mega-octicon octicon-three-bars"></i>
2014-06-21 19:39:51 +00:00
</button>
<button class="rt">
2014-06-22 20:11:03 +00:00
<i class="mega-octicon octicon-three-bars"></i>
2014-06-21 19:39:51 +00:00
</button>
2014-06-09 19:39:19 +00:00
{{partial "meta"}}
2014-05-30 00:23:23 +00:00
</header>
2014-05-28 20:57:39 +00:00
<form class="form" data-target="{{id}}">
<input class="submit" tabindex="-1" type="submit" >
2014-05-04 00:33:05 +00:00
<input class="input">
2014-05-02 17:46:18 +00:00
</form>
2014-03-05 13:46:16 +00:00
</div>
2014-05-02 17:46:18 +00:00
{{/each}}
</script>
2014-06-09 19:39:19 +00:00
<script type="text/html" class="meta">
<div class="meta">
<h1>
{{name}}
</h1>
{{#if users}}
<span class="count">
{{users.length}}
users
</span>
{{else}}
<span class="type">
{{type}}
</span>
{{/if}}
</div>
</script>
2014-05-02 17:46:18 +00:00
<script type="text/html" class="users">
{{#each users}}
2014-05-04 00:33:05 +00:00
<li>
2014-05-28 20:57:39 +00:00
<a href="#{{name}}" class="user">
2014-05-04 00:33:05 +00:00
{{mode}}{{name}}
2014-05-28 20:57:39 +00:00
</a>
2014-05-04 00:33:05 +00:00
</li>
2014-05-02 17:46:18 +00:00
{{/each}}
</script>
<script type="text/html" class="messages">
2014-05-28 20:57:39 +00:00
{{#each messages}}
2014-05-30 00:23:23 +00:00
<div class="row {{type}}">
2014-06-19 23:11:53 +00:00
<span class="time">
{{time}}
</span>
2014-05-30 00:23:23 +00:00
<span class="from">
2014-06-03 00:27:03 +00:00
<a href="#{{from}}" class="user">{{from}}</a>
2014-05-30 00:23:23 +00:00
</span>
<span class="text">
2014-06-20 00:26:48 +00:00
{{#contains type "toggle"}}
<button class="toggle" data-type="{{type}}">
<i class="tri"></i>
</button>
{{/contains}}
2014-05-04 00:33:05 +00:00
<em class="type">
{{type}}
</em>
2014-05-02 17:46:18 +00:00
{{{uri text}}}
2014-05-30 00:23:23 +00:00
</span>
</div>
2014-05-28 20:57:39 +00:00
{{/each}}
2014-05-02 17:46:18 +00:00
</script>
2014-03-05 13:46:16 +00:00
</div>
2014-06-17 16:20:22 +00:00
<script src="/js/components.min.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>