hardlounge/client/index.html
2014-04-22 07:48:13 -07:00

132 lines
3.0 KiB
HTML

<!doctype html>
<html>
<head>
<title>Chat</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no">
<link rel="stylesheet" href="/css/bootstrap.css">
<link rel="stylesheet" href="/css/style.css">
</head>
<body>
<div id="wrap">
<div id="viewport">
<aside id="sidebar">
<header class="header">
<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>
</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"/>
<input type="checkbox" value="mode"/>
<input type="checkbox" value="kick"/>
</div>
</div>
</div>
</div>
</aside>
<div id="chat">
</div>
</div>
</div>
<script type="text/x-handlebars-template" id="networks">
{{#each networks}}
<div id="network-{{id}}" class="network list-group">
{{partial "#channels"}}
</div>
{{/each}}
</script>
<script type="text/x-handlebars-template" id="channels">
{{#each channels}}
<a href="{{name}}" id="channel-{{id}}" class="channel list-group-item">
<span class="badge pull-right"></span>
{{name}}
</a>
{{/each}}
</script>
<script type="text/x-handlebars-template" id="windows">
{{#each windows}}
<div id="window-{{id}}" class="window {{type}}">
<div class="title">
<div class="toggle">
<a href="#" class="left">Channels</a>
<a href="#" class="right">Users</a>
</div>
<h1>{{name}}</h1>
<button class="close btn btn-danger btn-sm ">
Leave
</button>
</div>
<div class="users">
{{partial "#users"}}
</div>
<div class="messages">
{{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/x-handlebars-template" id="users">
<div class="count">
Users: {{users.length}}
</div>
{{#each users}}
<div class="user">
{{name}}
</div>
{{/each}}
</script>
<script type="text/x-handlebars-template" id="messages">
{{#each messages}}
<div class="message {{type}}">
<div class="time">{{time}}</div>
<div class="user">{{from}}</div>
<div class="type">{{type}}</div>
<div class="text">{{{uri text}}}</div>
</div>
{{/each}}
</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/bootstrap.js"></script>
<script src="/js/chat.js"></script>
</body>
</html>