hardlounge/client/index.html

74 lines
1.4 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>
<link rel="stylesheet" href="/css/style.css"/>
</head>
2014-03-04 17:22:06 +00:00
<body>
2014-03-05 13:46:16 +00:00
<aside id="sidebar"></aside>
<div id="chat"></div>
2014-03-04 17:22:06 +00:00
2014-03-05 13:46:16 +00:00
<script type="text/html" id="networks">
{{#networks}}
<div class="network">
{{#channels}}
<div class="channel {{type}}" data-id="{{id}}">
{{name}}
</div>
{{/channels}}
</div>
{{/networks}}
</script>
2014-03-04 19:40:27 +00:00
2014-03-05 13:46:16 +00:00
<script type="text/html" id="channels">
{{#channels}}
<div class="window {{type}}" data-id="{{id}}">
<h1 class="title">{{name}}</h1>
<div class="users">
{{> users}}
</div>
<div class="messages">
{{> messages}}
</div>
<form onSubmit="return false;">
<input type="text"/>
<input type="submit" style="display: none;"/>
</form>
</div>
{{/channels}}
</script>
<script type="text/html" id="users">
{{#users}}
<div class="user" data-id="{{id}}">
{{name}}
</div>
{{/users}}
</script>
<script type="text/html" id="messages">
{{#messages}}
<div class="message">
<span class="time">{{time}}</span>
<span class="user">{{user}}</span>
{{text}}
</div>
{{/messages}}
</script>
<script src="/socket.io/socket.io.js"></script>
<script src="/js/lib/mustache.min.js"></script>
<script src="/js/lib/jquery-2.1.0.min.js"></script>
2014-03-04 19:40:27 +00:00
<script src="/js/models.js"></script>
2014-03-04 17:22:06 +00:00
<script src="/js/client.js"></script>
<script>
2014-03-04 21:50:43 +00:00
// Run the client!
new Client().connect("");
2014-03-04 17:22:06 +00:00
</script>
</body>
</html>