Shuo/client/index.html

272 lines
8.1 KiB
HTML
Raw Normal View History

2014-08-16 00:05:37 +00:00
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimal-ui">
2014-09-15 17:07:41 +00:00
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
2014-08-16 00:05:37 +00:00
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Shout</title>
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/style.css">
2014-09-15 21:54:01 +00:00
<link id="theme" rel="stylesheet" href="<%= theme %>">
2014-08-16 00:05:37 +00:00
2014-09-14 17:50:00 +00:00
<link rel="shortcut icon" href="/img/favicon.png">
<link href="/img/apple-touch-icon-120x120.png" rel="apple-touch-icon" sizes="120x120">
2014-08-16 00:05:37 +00:00
</head>
<body class="<%= public ? "public" : "" %>">
<div id="wrap">
<div id="viewport">
<aside id="sidebar">
<div class="networks"></div>
<div class="empty">
You're not connected to any networks yet.
</div>
<footer id="footer">
<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>
<button id="sign-out" class="icon sign-out" data-placement="top" title="Sign out"></button>
</footer>
</aside>
<div id="main">
<div id="windows">
<div id="chat"></div>
<div id="sign-in" class="window">
<div class="header">
<button class="lt"></button>
</div>
2014-08-16 00:05:37 +00:00
<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
<input class="input" type="password" name="password">
</label>
</div>
2014-09-15 21:13:03 +00:00
<div class="col-xs-12">
<label class="remember">
<input type="checkbox" name="remember" checked="checked">
Stay signed in
</label>
</div>
2014-08-16 00:05:37 +00:00
<div class="col-xs-12 error" style="display: none;">
Authentication failed.
</div>
<div class="col-xs-12">
<button type="submit" class="btn">
Sign in
</button>
</div>
</div>
</form>
</div>
<div id="connect" class="window">
<div class="header">
<button class="lt"></button>
</div>
2014-08-16 00:05:37 +00:00
<form class="container" action="">
<div class="row">
<div class="col-sm-12">
2014-08-16 00:05:37 +00:00
<h1 class="title">Connect</h1>
</div>
<div class="col-sm-12">
<h2>Network settings</h2>
</div>
2014-09-14 21:26:22 +00:00
<div class="col-sm-3">
<label>Name</label>
</div>
<div class="col-sm-9">
2014-09-15 21:54:01 +00:00
<input class="input" name="name" value="<%= defaults.name %>">
2014-09-14 21:26:22 +00:00
</div>
<div class="col-sm-3">
<label>Server</label>
</div>
<div class="col-sm-6 col-xs-8">
2014-09-15 21:54:01 +00:00
<input class="input" name="host" value="<%= defaults.host %>">
2014-08-16 00:05:37 +00:00
</div>
<div class="col-sm-3 col-xs-4">
<div class="port">
2014-09-15 21:54:01 +00:00
<input class="input" name="port" value="<%= defaults.port %>">
</div>
2014-08-16 00:05:37 +00:00
</div>
<div class="clearfix"></div>
<div class="col-sm-3">
<label>Password</label>
</div>
<div class="col-sm-9">
2014-09-15 21:54:01 +00:00
<input class="input" type="password" name="password" value="<%= defaults.password %>">
</div>
<div class="col-sm-3"></div>
<div class="col-sm-9">
2014-09-10 15:56:19 +00:00
<label class="tls">
2014-09-15 21:54:01 +00:00
<input type="checkbox" name="tls" <%= defaults.tls ? 'checked="checked"' : '' %>>
2014-09-10 15:56:19 +00:00
Enable TLS/SSL
</label>
</div>
<div class="clearfix"></div>
<div class="col-sm-12">
<h2>User preferences</h2>
2014-09-10 15:56:19 +00:00
</div>
<div class="col-sm-3">
<label>Nick</label>
</div>
2014-09-14 21:26:22 +00:00
<div class="col-sm-5">
2014-09-15 21:54:01 +00:00
<input class="input" name="nick" value="<%= defaults.nick %>">
2014-08-16 00:05:37 +00:00
</div>
2014-09-14 21:26:22 +00:00
<div class="clearfix"></div>
<div class="col-sm-3">
<label>Real Name</label>
</div>
<div class="col-sm-9">
2014-09-15 21:54:01 +00:00
<input class="input" name="realname" class="input" value="<%= defaults.realname %>">
2014-08-16 00:05:37 +00:00
</div>
<div class="col-sm-3">
<label>Channels</label>
2014-08-16 00:05:37 +00:00
</div>
<div class="col-sm-9">
2014-09-15 21:54:01 +00:00
<input class="input" name="join" class="input" value="<%= defaults.join %>">
</div>
<div class="col-sm-3 clearfix"></div>
<div class="col-sm-9">
2014-08-16 00:05:37 +00:00
<button type="submit" class="btn">
Connect
</button>
</div>
</div>
</form>
</div>
<div id="settings" class="window">
<div class="header">
<button class="lt"></button>
</div>
2014-08-16 00:05:37 +00:00
<div class="container">
<div class="row">
<div class="col-sm-12">
<h1 class="title">Settings</h1>
</div>
2014-09-10 20:08:32 +00:00
<div class="col-sm-12">
<h2>Messages</h2>
</div>
<div class="col-sm-6">
<label class="opt">
<input type="checkbox" name="join">
Show joins
</label>
</div>
2014-09-11 17:24:32 +00:00
<div class="col-sm-6">
<label class="opt">
<input type="checkbox" name="motd">
Show motd
</label>
</div>
2014-09-10 20:08:32 +00:00
<div class="col-sm-6">
<label class="opt">
2014-09-11 18:05:33 +00:00
<input type="checkbox" name="part">
Show parts
2014-09-10 20:08:32 +00:00
</label>
</div>
<div class="col-sm-6">
<label class="opt">
2014-09-11 18:05:33 +00:00
<input type="checkbox" name="nick">
Show nick changes
2014-09-10 20:08:32 +00:00
</label>
</div>
<div class="col-sm-6">
<label class="opt">
<input type="checkbox" name="mode">
Show mode
</label>
</div>
<div class="col-sm-6">
<label class="opt">
<input type="checkbox" name="quit">
Show quits
</label>
</div>
2014-08-16 00:05:37 +00:00
<div class="col-sm-12">
2014-09-15 18:16:45 +00:00
<h2>Notifications</h2>
</div>
<div class="col-sm-12">
<label class="opt">
<input id="badge" type="checkbox" name="badge">
Enable badge
</label>
2014-08-16 00:05:37 +00:00
</div>
<div class="col-sm-12">
<label class="opt">
<input type="checkbox" name="notification">
Enable notification sound
</label>
</div>
<div class="col-sm-12">
<div class="opt">
<button id="play">Play sound</button>
</div>
</div>
<div class="col-sm-12">
<h2>About Shout</h2>
</div>
<div class="col-sm-12">
<p class="about">
2014-09-15 21:54:01 +00:00
You're currently running version <small><%= version %></small><br>
2014-08-16 00:05:37 +00:00
<a href="http://github.com/erming/shout" target="_blank">Check for updates</a>
</p>
</div>
</div>
</div>
</div>
</div>
<form id="form" action="">
<div class="inner">
<input id="submit" tabindex="-1" type="submit">
<input id="input" class="mousetrap">
</div>
</form>
</div>
</div>
</div>
2014-08-25 22:39:10 +00:00
<% if (debug) { %>
<script src="js/libs/favico.js"></script>
<script src="js/libs/handlebars.js"></script>
<script src="js/libs/handlebars/equal.js"></script>
<script src="js/libs/handlebars/tz.js"></script>
<script src="js/libs/handlebars/uri.js"></script>
2014-09-14 13:18:53 +00:00
<script src="js/libs/handlebars/users.js"></script>
2014-08-25 22:39:10 +00:00
<script src="js/libs/jquery.js"></script>
<script src="js/libs/jquery/bootstrap.js"></script>
<script src="js/libs/jquery/cookie.js"></script>
<script src="js/libs/jquery/inputhistory.js"></script>
<script src="js/libs/jquery/mousetrap.js"></script>
<script src="js/libs/jquery/stickyscroll.js"></script>
<script src="js/libs/jquery/tabcomplete.js"></script>
<script src="js/libs/moment.js"></script>
2014-09-14 13:18:53 +00:00
<script src="js/libs/notification.js"></script>
2014-08-25 22:39:10 +00:00
<script src="js/libs/socket.io.js"></script>
<script src="js/libs/string.contains.js"></script>
<script src="js/libs/uri.js"></script>
<% } else { %>
2014-09-11 18:23:19 +00:00
<script src="js/libs.min.js"></script>
2014-09-14 13:18:53 +00:00
<% } %>
2014-09-11 18:23:19 +00:00
<script src="js/shout.templates.js"></script>
<script src="js/shout.js"></script>
2014-08-16 00:05:37 +00:00
</body>
</html>