Shuo/client/index.html

261 lines
6.8 KiB
HTML
Raw Normal View History

2014-06-26 16:14:45 +00:00
<!doctype html>
<html>
<head>
2014-07-17 13:58:43 +00:00
2014-06-26 16:14:45 +00:00
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimal-ui">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
2014-07-17 13:58:43 +00:00
2014-06-26 16:14:45 +00:00
<title>Shout</title>
2014-07-17 13:58:43 +00:00
2014-06-26 16:14:45 +00:00
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/style.css">
2014-07-17 15:12:05 +00:00
<link id="theme" rel="stylesheet" href="<%=theme%>">
2014-07-17 13:58:43 +00:00
2014-06-26 16:14:45 +00:00
<link rel="apple-touch-icon" sizes="144x144" href="/img/apple-icon-144x144.png" />
<link rel="shortcut icon" href="/img/favicon.png">
2014-07-17 13:58:43 +00:00
2014-06-26 16:14:45 +00:00
</head>
2014-07-17 15:12:05 +00:00
<body class="<%= public ? "public" : "signed-out" %>">
2014-07-17 13:58:43 +00:00
2014-07-07 21:44:49 +00:00
<div id="wrap">
<div id="viewport">
<aside id="sidebar">
2014-07-19 01:31:00 +00:00
<div class="networks"></div>
<div class="empty">
You're not connected to any networks yet.
2014-07-08 20:50:41 +00:00
</div>
2014-07-07 21:44:49 +00:00
<footer id="footer">
2014-07-20 11:22:58 +00:00
<button class="icon sign-in" data-target="#sign-in" data-title="Sign in" data-placement="top" title="Sign in to Shout"></button>
<button class="icon connect" data-target="#connect" data-title="Connect" data-placement="top" title="Connect to network"></button>
<button class="icon settings" data-target="#settings" data-title="Settings" data-placement="top" title="Client settings"></button>
2014-07-20 19:49:44 +00:00
<a href="" class="icon sign-out" data-placement="top" title="Sign out"></a>
2014-07-07 21:44:49 +00:00
</footer>
</aside>
<div id="main">
<header id="header">
<button id="lt"></button>
<button id="rt"></button>
2014-07-08 20:50:41 +00:00
<h1></h1>
2014-07-17 13:58:43 +00:00
</header>
2014-07-07 21:44:49 +00:00
<div id="windows">
<div id="chat"></div>
2014-07-17 15:12:05 +00:00
<div id="sign-in" class="window">
<form class="container" action="">
<div class="row">
<div class="col-xs-12">
<h1 class="title">Sign in</h1>
</div>
<div class="col-xs-12">
<label>
Username
<input class="input" name="user">
</label>
</div>
<div class="col-xs-12">
<label class="port">
Password
2014-07-20 11:22:58 +00:00
<input class="input" type="password" name="password">
2014-07-17 15:12:05 +00:00
</label>
</div>
<div class="col-xs-12">
<button type="submit" class="btn">
Sign in
</button>
</div>
</div>
</form>
</div>
2014-07-08 20:50:41 +00:00
<div id="connect" class="window">
<form class="container" action="">
<div class="row">
<div class="col-xs-12">
<h1 class="title">Connect</h1>
</div>
<div class="col-xs-8">
<label>
Server
2014-07-19 01:31:00 +00:00
<input class="input" name="host" placeholder="irc.freenode.org">
2014-07-08 20:50:41 +00:00
</label>
</div>
<div class="col-xs-4">
<label class="port">
Port
2014-07-19 01:31:00 +00:00
<input class="input" name="port" placeholder="6667">
2014-07-08 20:50:41 +00:00
</label>
</div>
<div class="col-xs-5">
<label>
Nick
2014-07-19 01:31:00 +00:00
<input class="input" name="nick" placeholder="shout-user">
2014-07-08 20:50:41 +00:00
</label>
</div>
<div class="col-xs-7">
<label>
Real Name
2014-07-19 01:31:00 +00:00
<input class="input" name="realname" class="input" placeholder="Shout User">
2014-07-08 20:50:41 +00:00
</label>
</div>
<div class="col-xs-12">
<label>
Channels
2014-07-19 01:31:00 +00:00
<input class="input" name="join" class="input" placeholder="#shout-irc">
2014-07-08 20:50:41 +00:00
</label>
</div>
<div class="col-xs-12">
<button type="submit" class="btn">
Connect
</button>
</div>
2014-07-07 21:44:49 +00:00
</div>
2014-07-08 20:50:41 +00:00
</form>
2014-07-07 00:44:31 +00:00
</div>
2014-07-08 20:50:41 +00:00
<div id="settings" class="window">
2014-07-07 21:44:49 +00:00
<div class="container">
2014-07-08 20:50:41 +00:00
<div class="row">
<div class="col-sm-12">
<h1 class="title">Settings</h1>
</div>
2014-07-09 22:40:51 +00:00
<div class="col-sm-12">
<h2>Messages</h2>
</div>
<div class="col-sm-6">
<label class="opt">
2014-07-20 11:22:58 +00:00
<input type="checkbox" name="join">
Show joins
2014-07-09 22:40:51 +00:00
</label>
</div>
<div class="col-sm-6">
<label class="opt">
2014-07-20 11:22:58 +00:00
<input type="checkbox" name="nick">
Show nick changes
2014-07-09 22:40:51 +00:00
</label>
</div>
<div class="col-sm-6">
<label class="opt">
2014-07-20 11:22:58 +00:00
<input type="checkbox" name="part">
Show parts
2014-07-09 22:40:51 +00:00
</label>
</div>
<div class="col-sm-6">
<label class="opt">
2014-07-20 11:22:58 +00:00
<input type="checkbox" name="mode">
Show mode
2014-07-09 22:40:51 +00:00
</label>
</div>
<div class="col-sm-6">
<label class="opt">
2014-07-20 11:22:58 +00:00
<input type="checkbox" name="quit">
Show quits
2014-07-09 22:40:51 +00:00
</label>
</div>
<div class="col-sm-12">
<h2>Sound</h2>
</div>
<div class="col-sm-12">
<label class="opt">
2014-07-20 11:22:58 +00:00
<input type="checkbox" name="notification">
Enable notification sound
2014-07-09 22:40:51 +00:00
</label>
</div>
<div class="col-sm-12">
<div class="opt">
<button id="play">Play sound</button>
</div>
</div>
2014-07-07 21:44:49 +00:00
</div>
</div>
2014-07-07 12:42:46 +00:00
</div>
2014-07-07 00:44:31 +00:00
</div>
2014-07-07 21:44:49 +00:00
<form id="form" action="">
<input id="submit" tabindex="-1" type="submit">
2014-07-08 20:50:41 +00:00
<input id="input" autofocus>
2014-07-07 21:44:49 +00:00
</form>
2014-06-26 16:14:45 +00:00
</div>
2014-07-07 21:44:49 +00:00
</div>
2014-06-26 16:14:45 +00:00
</div>
2014-07-17 13:58:43 +00:00
2014-06-27 00:47:36 +00:00
<div id="templates">
<script type="text/html" class="networks">
{{#each networks}}
2014-07-07 00:44:31 +00:00
<section id="network-{{id}}" class="network">
2014-06-27 00:47:36 +00:00
{{partial "channels"}}
</section>
{{/each}}
</script>
2014-07-17 13:58:43 +00:00
2014-06-27 00:47:36 +00:00
<script type="text/html" class="channels">
{{#each channels}}
2014-07-09 17:11:07 +00:00
<button data-id="{{id}}" data-target="#chan-{{id}}" data-title="{{name}}" class="chan {{type}}">
2014-06-27 00:47:36 +00:00
<span class="badge"></span>
2014-07-09 17:11:07 +00:00
<span class="close"></span>
2014-06-30 01:20:54 +00:00
{{name}}
2014-06-27 00:47:36 +00:00
</button>
{{/each}}
</script>
2014-07-17 13:58:43 +00:00
2014-06-30 01:20:54 +00:00
<script type="text/html" class="chat">
2014-07-07 12:42:46 +00:00
{{#each channels}}
2014-07-09 22:40:51 +00:00
<div id="chan-{{id}}" data-id="{{id}}" data-type="{{type}}" class="chan">
2014-07-07 12:42:46 +00:00
<div class="chat">
2014-07-20 19:49:44 +00:00
{{#equal 100 messages.length}}
<button class="show-more" data-id="{{id}}">
Show more
</button>
{{/equal}}
2014-07-07 12:42:46 +00:00
<div class="messages">
2014-06-30 01:20:54 +00:00
{{partial "messages"}}
</div>
</div>
<aside class="sidebar">
2014-07-07 12:42:46 +00:00
<div class="meta">
<h1>{{name}}</h1>
<span class="type">{{type}}</span>
</div>
<div class="users">
{{partial "users"}}
</div>
2014-06-30 01:20:54 +00:00
</aside>
2014-07-07 12:42:46 +00:00
</div>
{{/each}}
2014-06-30 01:20:54 +00:00
</script>
2014-07-17 13:58:43 +00:00
2014-06-27 00:47:36 +00:00
<script type="text/html" class="users">
2014-07-04 23:32:40 +00:00
{{#if users.length}}
2014-07-07 12:42:46 +00:00
<div class="count">
<input class="search" placeholder="{{users.length}} users">
2014-07-04 23:32:40 +00:00
</div>
{{/if}}
2014-07-07 12:42:46 +00:00
<div class="names">
2014-06-27 00:47:36 +00:00
{{#each users}}
2014-07-07 00:44:31 +00:00
<button class="user">{{mode}}{{name}}</button>
2014-06-27 00:47:36 +00:00
{{/each}}
</div>
</script>
2014-07-17 13:58:43 +00:00
2014-06-27 00:47:36 +00:00
<script type="text/html" class="messages">
{{#each messages}}
2014-06-30 01:20:54 +00:00
<div class="msg {{type}}">
2014-06-27 00:47:36 +00:00
<span class="time">
{{time}}
</span>
<span class="from">
2014-06-30 01:20:54 +00:00
{{#if from}}
2014-07-07 00:44:31 +00:00
<button class="user">{{from}}</button>
2014-06-30 01:20:54 +00:00
{{/if}}
2014-06-27 00:47:36 +00:00
</span>
<span class="text">
<em class="type">{{type}}</em>
{{{uri text}}}
</span>
</div>
{{/each}}
</script>
</div>
2014-07-17 13:58:43 +00:00
2014-07-20 21:22:23 +00:00
<script src="js/libs.min.js"></script>
2014-06-30 01:20:54 +00:00
<script src="js/chat.js"></script>
2014-07-17 13:58:43 +00:00
2014-06-26 16:14:45 +00:00
</body>
2014-07-17 13:58:43 +00:00
</html>