hardlounge/client/index.html

103 lines
1.9 KiB
HTML
Raw Normal View History

2014-03-04 12:22:06 -05:00
<!doctype html>
<html>
2014-03-05 08:46:16 -05:00
<head>
2014-04-07 17:19:20 -04:00
2014-03-16 16:07:27 -04:00
<title>Chat</title>
2014-04-07 17:19:20 -04:00
2014-03-14 15:03:25 -04:00
<meta charset="utf-8">
2014-03-16 20:54:58 -04:00
<meta name="viewport" content="width=device-width, user-scalable=no">
2014-04-07 17:19:20 -04:00
2014-04-22 13:57:16 -04:00
<link rel="stylesheet" href="/style.css">
2014-04-07 17:19:20 -04:00
2014-03-05 08:46:16 -05:00
</head>
2014-03-04 12:22:06 -05:00
<body>
2014-03-16 20:54:58 -04:00
<div id="wrap">
<div id="viewport">
2014-04-07 17:19:20 -04:00
2014-04-22 13:57:16 -04:00
<aside id="sidebar"></aside>
<div id="chat"></div>
2014-03-16 20:54:58 -04:00
</div>
</div>
2014-04-20 17:48:05 -04:00
<script type="text/x-handlebars-template" id="networks">
{{#each networks}}
2014-04-22 13:57:16 -04:00
<ul id="network-{{id}}" class="network">
2014-04-20 17:48:05 -04:00
{{partial "#channels"}}
2014-04-22 13:57:16 -04:00
</ul>
2014-04-20 17:48:05 -04:00
{{/each}}
2014-03-05 08:46:16 -05:00
</script>
2014-04-20 17:48:05 -04:00
<script type="text/x-handlebars-template" id="channels">
{{#each channels}}
2014-04-22 13:57:16 -04:00
<li>
<button id="channel-{{id}}" class="channel">
2014-03-17 12:24:32 -04:00
{{name}}
2014-04-22 13:57:16 -04:00
</button>
</li>
2014-04-20 17:48:05 -04:00
{{/each}}
2014-03-17 12:24:32 -04:00
</script>
2014-04-20 17:48:05 -04:00
<script type="text/x-handlebars-template" id="windows">
{{#each windows}}
2014-03-31 18:02:28 -04:00
<div id="window-{{id}}" class="window {{type}}">
2014-03-14 17:57:54 -04:00
<div class="title">
<h1>{{name}}</h1>
</div>
2014-03-05 08:46:16 -05:00
<div class="users">
2014-04-20 17:48:05 -04:00
{{partial "#users"}}
2014-03-05 08:46:16 -05:00
</div>
<div class="messages">
2014-04-20 17:48:05 -04:00
{{partial "#messages"}}
2014-03-05 08:46:16 -05:00
</div>
<form onSubmit="return false;">
2014-03-06 10:11:25 -05:00
<input type="text" class="input" data-target="{{id}}"/>
2014-03-05 08:46:16 -05:00
<input type="submit" style="display: none;"/>
</form>
</div>
2014-04-20 17:48:05 -04:00
{{/each}}
2014-03-05 08:46:16 -05:00
</script>
2014-04-20 17:48:05 -04:00
<script type="text/x-handlebars-template" id="users">
2014-04-14 11:18:18 -04:00
<div class="count">
Users: {{users.length}}
</div>
2014-04-20 17:48:05 -04:00
{{#each users}}
2014-04-22 13:57:16 -04:00
<button class="user">
2014-04-09 16:54:04 -04:00
{{name}}
2014-04-22 13:57:16 -04:00
</button>
2014-04-20 17:48:05 -04:00
{{/each}}
2014-03-05 08:46:16 -05:00
</script>
2014-04-20 17:48:05 -04:00
<script type="text/x-handlebars-template" id="messages">
{{#each messages}}
2014-04-22 13:57:16 -04:00
<div class="{{type}}">
<span class="time">
{{time}}
</span>
<button class="user">
{{from}}
</button>
{{#if type}}
<span class="type">
{{type}}
</span>
{{/if}}
<span class="text">
{{{uri text}}}
</span>
2014-03-05 08:46:16 -05:00
</div>
2014-04-20 17:48:05 -04:00
{{/each}}
2014-03-05 08:46:16 -05:00
</script>
2014-04-22 10:48:13 -04: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 08:46:16 -05:00
<script src="/socket.io/socket.io.js"></script>
2014-03-06 10:11:25 -05:00
<script src="/js/chat.js"></script>
2014-04-07 17:19:20 -04:00
2014-03-04 12:22:06 -05:00
</body>
</html>