thelounge/client/index.html

125 lines
2.8 KiB
HTML
Raw Normal View History

2014-03-04 18:22:06 +01:00
<!doctype html>
<html>
2014-03-05 14:46:16 +01:00
<head>
2014-04-07 23:19:20 +02:00
2014-03-16 21:07:27 +01:00
<title>Chat</title>
2014-04-07 23:19:20 +02:00
2014-03-14 20:03:25 +01:00
<meta charset="utf-8">
2014-03-17 01:54:58 +01:00
<meta name="viewport" content="width=device-width, user-scalable=no">
2014-04-07 23:19:20 +02:00
2014-03-14 20:03:25 +01:00
<link rel="stylesheet" href="/css/bootstrap.css">
<link rel="stylesheet" href="/css/style.css">
2014-04-07 23:19:20 +02:00
2014-03-05 14:46:16 +01:00
</head>
2014-03-04 18:22:06 +01:00
<body>
2014-03-17 01:54:58 +01:00
<div id="wrap">
<div id="viewport">
2014-04-07 23:19:20 +02:00
2014-03-16 20:00:57 +01:00
<aside id="sidebar">
2014-03-17 01:54:58 +01:00
<header class="header">
2014-04-07 23:19:20 +02:00
2014-03-16 20:00:57 +01: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-04-01 00:02:28 +02:00
2014-03-17 01:54:58 +01:00
</header>
<div class="tab-content">
2014-04-07 23:19:20 +02:00
2014-03-16 21:07:27 +01:00
<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"/>
2014-04-08 16:18:06 +02:00
<input type="checkbox" value="mode"/>
2014-04-14 17:18:18 +02:00
<input type="checkbox" value="kick"/>
2014-03-16 21:07:27 +01:00
</div>
</div>
2014-03-16 20:00:57 +01:00
</div>
2014-04-07 23:19:20 +02:00
2014-03-17 01:54:58 +01:00
</div>
2014-03-16 20:00:57 +01:00
</aside>
2014-04-19 23:40:36 +02:00
2014-03-17 01:54:58 +01:00
<div id="chat">
</div>
</div>
</div>
2014-04-20 23:48:05 +02:00
<script type="text/x-handlebars-template" id="networks">
{{#each networks}}
2014-04-01 00:02:28 +02:00
<div id="network-{{id}}" class="network list-group">
2014-04-20 23:48:05 +02:00
{{partial "#channels"}}
2014-03-05 14:46:16 +01:00
</div>
2014-04-20 23:48:05 +02:00
{{/each}}
2014-03-05 14:46:16 +01:00
</script>
2014-04-20 23:48:05 +02:00
<script type="text/x-handlebars-template" id="channels">
{{#each channels}}
2014-04-01 00:02:28 +02:00
<a href="{{name}}" id="channel-{{id}}" class="channel list-group-item">
2014-03-17 17:24:32 +01:00
<span class="badge pull-right"></span>
{{name}}
</a>
2014-04-20 23:48:05 +02:00
{{/each}}
2014-03-17 17:24:32 +01:00
</script>
2014-04-20 23:48:05 +02:00
<script type="text/x-handlebars-template" id="windows">
{{#each windows}}
2014-04-01 00:02:28 +02:00
<div id="window-{{id}}" class="window {{type}}">
2014-03-14 22:57:54 +01:00
<div class="title">
<h1>{{name}}</h1>
</div>
2014-03-05 14:46:16 +01:00
<div class="users">
2014-04-20 23:48:05 +02:00
{{partial "#users"}}
2014-03-05 14:46:16 +01:00
</div>
<div class="messages">
2014-04-20 23:48:05 +02:00
{{partial "#messages"}}
2014-03-05 14:46:16 +01:00
</div>
<form onSubmit="return false;">
2014-03-06 16:11:25 +01:00
<input type="text" class="input" data-target="{{id}}"/>
2014-03-05 14:46:16 +01:00
<input type="submit" style="display: none;"/>
</form>
</div>
2014-04-20 23:48:05 +02:00
{{/each}}
2014-03-05 14:46:16 +01:00
</script>
2014-04-20 23:48:05 +02:00
<script type="text/x-handlebars-template" id="users">
2014-04-14 17:18:18 +02:00
<div class="count">
Users: {{users.length}}
</div>
2014-04-20 23:48:05 +02:00
{{#each users}}
2014-04-09 22:54:04 +02:00
<div class="user">
{{name}}
</div>
2014-04-20 23:48:05 +02:00
{{/each}}
2014-03-05 14:46:16 +01:00
</script>
2014-04-20 23:48:05 +02:00
<script type="text/x-handlebars-template" id="messages">
{{#each messages}}
2014-03-13 16:50:33 +01:00
<div class="message {{type}}">
2014-04-02 17:24:33 +02:00
<div class="time">{{time}}</div>
<div class="user">{{from}}</div>
2014-04-07 23:19:20 +02:00
<div class="type">{{type}}</div>
2014-04-21 12:27:43 +02:00
<div class="text">{{{uri text}}}</div>
2014-03-05 14:46:16 +01:00
</div>
2014-04-20 23:48:05 +02:00
{{/each}}
2014-03-05 14:46:16 +01:00
</script>
2014-04-22 16:48:13 +02: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 14:46:16 +01:00
<script src="/socket.io/socket.io.js"></script>
2014-04-19 23:40:36 +02:00
<script src="/js/bootstrap.js"></script>
2014-03-06 16:11:25 +01:00
<script src="/js/chat.js"></script>
2014-04-07 23:19:20 +02:00
2014-03-04 18:22:06 +01:00
</body>
</html>