thelounge/client/index.html

147 lines
2.9 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">
<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
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>
</section>
<div id="networks">
</div>
2014-05-02 17:46:18 +00:00
</aside>
<div id="main">
<div id="windows">
2014-05-22 23:14:01 +00:00
<div id="shout" class="window"></div>
</div>
<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
<h2>{{name}}</h2>
{{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-05-28 20:57:39 +00:00
<a href="#window-{{id}}" id="channel-{{id}}" class="{{type}}">
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-14 20:28:17 +00:00
{{#equal <%= messages %> 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">
<button class="lt"></button>
<button class="rt"></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}}">
<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-05-02 17:46:18 +00:00
{{#if type}}
2014-05-04 00:33:05 +00:00
<em class="type">
{{type}}
</em>
2014-05-02 17:46:18 +00:00
{{/if}}
{{{uri text}}}
2014-05-30 00:23:23 +00:00
</span>
<span class="time">
2014-05-02 23:35:51 +00:00
{{time}}
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-05-02 17:46:18 +00:00
<script src="/socket.io/socket.io.js"></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-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>