-
Notifications
You must be signed in to change notification settings - Fork 3
/
pwd.html
78 lines (78 loc) · 2.64 KB
/
pwd.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Shuteye.co - Private, browser-based, video conferencing</title>
<link rel="icon" type="image/png" href="/img/favicon.png" />
<link rel="stylesheet" href="/css/bootstrap.css" >
<link rel="stylesheet" href="/css/shuteye.css" type="text/css">
<link rel="stylesheet" href="/css/font-awesome.min.css" type="text/css">
<link rel="stylesheet" href="/css/forms.css" type="text/css">
</head>
<body>
<div class="navbar">
<div class="navbar-inner">
<a class="brand" href="/">
SHUT
<i class="icon-eye-close"></i>
EYE
</a>
<ul class="nav">
<li>
<a href="/about" class="link">ABOUT</a>
</li>
<li>
<a href="http://blog.shuteye.co" class="link">BLOG</a>
</li>
</ul>
</div>
</div>
<div class="row-fluid">
<div class="offset3 span6">
<form id="pwd-form" method="POST" action="/h/{{session}}">
<div id="browser-not-supported" class="hide alert alert-error">
<strong>SHUTEYE DOES NOT SUPPORT YOUR BROWSER</strong>
<br/>
Use <a href="https://www.google.com/intl/en/chrome/browser/">Chrome</a> or <a href="https://www.mozilla.org/">Firefox</a> when hosting a session.
</div>
{{#incorrect}}
<div id="password-error" class="alert alert-error">
The password you entered was incorrect.
</div>
{{/incorrect}}
<fieldset id="enter-password">
<input id="password" name="password" type="password" placeholder="Session Password" required>
<span class="help-inline show-hide-pwd">
<a class="no-decor" href="javascript:togglePassword();">
<i id="show-password" class="icon-eye-close icon-3x" title="Show password"></i>
</a>
</span>
<input type="submit" id="submit-purchase" class="btn btn-large btn-success" value="Start Session">
</fieldset>
</form>
</div>
</div>
<script src="/js/jquery-1.10.2.min.js" type="text/javascript"></script>
<script>
var togglePassword = function () {
var show = $('i#show-password');
if (show.length > 0) {
show.attr('id', 'hide-password').attr('class', 'icon-eye-open icon-3x');
$('input#password').attr('type', 'text');
} else {
$('i#hide-password').attr('id', 'show-password').attr('class', 'icon-eye-close icon-3x');
$('input#password').attr('type', 'password');
}
}
</script>
<script type="text/javascript">
if (navigator.mozGetUserMedia || navigator.webkitGetUserMedia) {
$('#browser-not-supported').toggleClass('hide', true);
$('#enter-password').toggleClass('hide', false);
} else {
$('#browser-not-supported').toggleClass('hide', false);
$('#enter-password').toggleClass('hide', true);
}
</script>
</body>
</html>