/
login.lens
68 lines (48 loc) · 1.53 KB
/
login.lens
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<!-- Publishes Author, Description, and Keywords from Settings > Site Publishing plus content data -->
<koken:meta />
<!-- Publishes Page Title from Settings > Site Publishing plus content titles -->
<koken:title />
<!-- More consistent cross-browser styling -->
<koken:asset file="css/normalize.css" />
<!-- Loading Bootstrap CSS just for basic styling -->
<koken:asset file="css/bootstrap.css" />
<koken:asset file="css/bootstrap-theme.css" />
<!-- Loading theme's settings css from css/settings.css.lens -->
<koken:settings />
</head>
<body>
<!--
This login.lens template is used by Koken's Password Protect plugin
when a user is asked to sign-in to access a protected site
or individual albums and sets.
-->
<div class="container">
<koken:form>
<h1>
<koken:link to="front" title="{{ labels.home.singular }}">{{ site.title }}</koken:link>
</h1>
<koken:not empty="messages.koken_password_error">
<p>
{{ messages.koken_password_error }}
</p>
</koken:not>
<p>
<input type="password" name="password" autofocus placeholder="Enter password" />
</p>
<button type="submit" disabled="disabled">Go</button>
</koken:form>
<script>
$(document).ready(function() {
$('input[type="password"]').keyup(function() {
$('button[type="submit"]').attr('disabled', !$(this).val().length);
}).trigger('keyup');
});
</script>
</div>
</body>
</html>