hardlounge/client/index.html
2014-05-01 16:28:04 +02:00

110 lines
2.2 KiB
HTML

<!doctype html>
<html>
<head>
<title>Shout — The modern IRC client</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no">
<link rel="stylesheet" href="/normalize.css">
<link rel="stylesheet" href="/style.css">
<link rel="stylesheet" href="<%= typeof theme !== 'undefined' ? theme : '' %>">
</head>
<body>
<div id="wrap">
<div id="viewport">
<aside id="sidebar"></aside>
<div id="chat"></div>
<footer id="footer">
<a href="<%= homepage %>" target="_blank" class="btn">
<strong><%= name %></strong>
<%= version %>
</a>
</footer>
</div>
</div>
<script type="text/html" id="networks">
{{#each networks}}
<div id="network-{{id}}" data-nick="{{nick}}" class="network">
<h2 class="header">{{host}}</h2>
{{partial "#channels"}}
</div>
{{/each}}
</script>
<script type="text/html" id="channels">
{{#each channels}}
<button id="channel-{{id}}" class="channel">
{{name}}
</button>
{{/each}}
</script>
<script type="text/html" id="windows">
{{#each windows}}
<div id="window-{{id}}" class="window {{type}}">
<div class="users">
{{partial "#users"}}
</div>
<div class="messages">
<div class="show-more">
<button class="btn">Show more</button>
</div>
{{partial "#messages"}}
</div>
<form onSubmit="return false;">
<input type="text" class="input" data-target="{{id}}"/>
<input type="submit" style="display: none;"/>
</form>
</div>
{{/each}}
</script>
<script type="text/html" id="users">
<div class="count">
Users: {{users.length}}
</div>
{{#each users}}
<button class="user">
{{mode}}{{name}}
</button>
{{/each}}
</script>
<script type="text/html" id="messages">
{{#slice messages limit="20"}}
<div class="msg {{type}}">
<span class="time">
{{time}}
</span>
<button class="user">
{{from}}
</button>
<span class="text">
{{#if type}}
<em class="type">{{type}}</em>
{{/if}}
{{{uri text}}}
</span>
</div>
{{/slice}}
</script>
<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>
<script src="/socket.io/socket.io.js"></script>
<script src="/js/chat.js"></script>
</body>
</html>