hardlounge/client/index.html

105 lines
2.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>
2014-03-14 19:03:25 +00:00
2014-03-16 20:07:27 +00:00
<title>Chat</title>
2014-03-14 19:03:25 +00:00
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="stylesheet" href="/css/bootstrap.css">
<link rel="stylesheet" href="/css/style.css">
2014-03-05 13:46:16 +00:00
</head>
2014-03-04 17:22:06 +00:00
<body>
2014-03-16 19:00:57 +00:00
<aside id="sidebar">
2014-03-16 20:07:27 +00:00
<header class="header">
2014-03-16 19:00:57 +00:00
<ul class="nav nav-tabs">
<li class="active"><a href="#list" data-toggle="tab">Channels</a></li>
<li><a href="#settings" data-toggle="tab">Settings</a></li>
</ul>
2014-03-16 20:07:27 +00:00
</header>
<div class="tab-content">
<div id="list" class="tab-pane active"></div>
<div id="settings" class="tab-pane">
<div class="panel panel-default">
<div class="panel-heading">
Show/hide events
</div>
<div class="panel-body">
<input type="checkbox" value="join"/>
<input type="checkbox" value="part"/>
<input type="checkbox" value="nick"/>
<input type="checkbox" value="quit"/>
</div>
</div>
2014-03-16 19:00:57 +00:00
</div>
2014-03-16 20:07:27 +00:00
</div>
2014-03-16 19:00:57 +00:00
</aside>
2014-03-16 20:07:27 +00:00
2014-03-05 13:46:16 +00:00
<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}}
2014-03-14 19:03:25 +00:00
<div class="network list-group" data-id="{{id}}">
2014-03-05 13:46:16 +00:00
{{#channels}}
2014-03-16 19:00:57 +00:00
<a href="{{name}}" class="channel list-group-item" data-id="{{id}}" data-name="{{name}}">
2014-03-15 15:07:49 +00:00
<span class="badge pull-right"></span>
2014-03-05 13:46:16 +00:00
{{name}}
2014-03-14 19:03:25 +00:00
</a>
2014-03-05 13:46:16 +00:00
{{/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}}">
2014-03-14 21:57:54 +00:00
<div class="title">
<h1>{{name}}</h1>
<button class="close btn btn-danger btn-sm ">Leave</button>
</div>
2014-03-05 13:46:16 +00:00
<div class="users">
{{> users}}
</div>
<div class="messages">
{{> messages}}
</div>
<form onSubmit="return false;">
2014-03-06 15:11:25 +00:00
<input type="text" class="input" data-target="{{id}}"/>
2014-03-05 13:46:16 +00:00
<input type="submit" style="display: none;"/>
</form>
</div>
{{/channels}}
</script>
<script type="text/html" id="users">
{{#users}}
2014-03-15 15:51:21 +00:00
<a href="{{name}}" class="user">
2014-03-07 21:24:02 +00:00
{{mode}}{{name}}
2014-03-15 15:51:21 +00:00
</a>
2014-03-05 13:46:16 +00:00
{{/users}}
</script>
<script type="text/html" id="messages">
{{#messages}}
2014-03-13 15:50:33 +00:00
<div class="message {{type}}">
2014-03-05 13:46:16 +00:00
<span class="time">{{time}}</span>
2014-03-15 15:51:21 +00:00
<a href="{{user}}" class="user">{{mode}}{{user}}</a>
2014-03-13 15:50:33 +00:00
<span class="text">{{text}}</span>
2014-03-05 13:46:16 +00:00
</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-16 19:00:57 +00:00
<script src="/js/lib/bootstrap.js"></script>
2014-03-06 15:11:25 +00:00
<script src="/js/chat.js"></script>
2014-03-04 17:22:06 +00:00
</body>
</html>