-
Notifications
You must be signed in to change notification settings - Fork 189
Expand file tree
/
Copy pathindex.html
More file actions
153 lines (136 loc) · 4.42 KB
/
index.html
File metadata and controls
153 lines (136 loc) · 4.42 KB
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<!doctype html>
<html ⚡ lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,minimum-scale=1">
<style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>
<link rel="canonical" href=".">
<title><amp-script></title>
<script async src="https://cdn.ampproject.org/v0.js"></script>
<script async custom-element="amp-script" src="https://cdn.ampproject.org/v0/amp-script-0.1.js"></script>
<script async custom-element="amp-form" src="https://cdn.ampproject.org/v0/amp-form-0.1.js"></script>
<style amp-custom>
body {
line-height: 2rem;
font-size: 1rem;
font-family: Roboto, Arial, sans-serif;
color: #222;
}
main {
padding: 56px 0;
margin: 10px;
max-width: 750px;
}
p {
margin-bottom: 2.5rem;
font-size: 1.25rem;
}
input {
height: 1.25rem;
font-size: .875rem;
margin-left: .25rem;
padding: 0 .25rem;
color: #222;
}
button {
background-color: #005af0;
color: #eee;
font-size: 1rem;
margin-top: 1rem;
padding: .5rem 1rem;
border-radius: 6px;
}
button:disabled {
background-color: #ccc;
color: #666;
}
button:enabled:hover {
cursor: pointer;
}
main h2 {
max-width: 600px;
margin-left: .5rem;
margin-right: .5rem;
}
.top {
top: 0;
}
.nav-bar h1 {
margin: 0;
text-align: center;
}
.nav-bar {
background: #005af0;
box-shadow: 0 2px 10px 0 rgba(0,0,0,.07);
color: #ffffff;
height: 56px;
line-height: 56px;
overflow: hidden;
position: fixed;
width: 100%;
z-index: 1000;
}
.card {
background: #dee6ef;
padding: 1rem;
margin: .5rem;
border-radius: 8px;
}
.form-input {
margin-bottom: .5rem;
}
label {
display: inline-block;
width: 5rem;
}
#rules {
line-height: 1.5rem;
margin-top: 1.25rem;
padding-left: .5rem;
font-size: .875rem;
}
li.valid {
color: #2d7b1f;
}
li.invalid {
color:#c11136;
}
</style>
</head>
<body>
<header class="nav-bar top">
<h1><amp-script> exercise!</h1>
</header>
<main>
<amp-script src="js/validate.js" layout="fixed" sandbox="allow-forms" height="500" width="750">
<form method="post" action-xhr="#" target="_top" class="card">
<p>Welcome to our site! <br/> To register, enter your email address and a secure password.</p>
<div class="form-input">
<label>Email:</label>
<input type="text" name="email" tabindex="1" role="input" required>
</div>
<div class="form-input">
<label>Password:</label>
<input type=password
name="password"
required
role="input"
tabindex="2"
id="passwordBox">
</div>
<div id="rules" hidden>
<span>Your password must contain each of the following:</span>
<ul>
<li id="lower">Lowercase letter</li>
<li id="upper">Capital letter</li>
<li id="digit">Digit</li>
<li id="special">Special character (@$!%*?&)</li>
<li id="eight">At least 8 characters</li>
</ul>
</div>
<button type="submit" id="submitButton" tabindex="3" disabled>Submit</button>
</form>
</amp-script>
</main>
</body>
</html>