-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
83 lines (76 loc) · 1.95 KB
/
index.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
79
80
81
82
83
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<!-- You can ignore these styles if you want - they are just there for demo -->
<!-- Attribution: http://codepen.io/chdhmphry/pen/IFrva -->
<style type="text/css">
*{
box-sizing: border-box;
}
body {
background: #F3F3F4;
padding: 20px;
}
.centered-container {
max-width: 600px;
margin: 0 auto;
}
.submit {
display: block;
width: 100%;
padding: 10px;
border: 2px solid #ccc;
border-radius: 4px;
background: transparent;
color: #ccc;
transition: .3s;
}
.submit:hover {
color: #AAD661;
border-color: #AAD661;
}
input,
textarea{
border: 2px solid #ccc;
border-radius: 4px;
padding: 10px;
width: 100%;
resize: none;
transition: .3s;
}
input:focus {
border: 2px solid #999;
outline: none;
}
.input-holder{
position: relative;
margin: 0 0 20px;
}
</style>
</head>
<body>
<div class="centered-container">
<h1>compareTo</h1>
<p>
compareTo is a custom html5 data attribute that compares two password fields with one another. Try it out.
</p>
<!-- This form does not do anything particularly interesting, just
demonstrate the compareTo attribute. -->
<form>
<div class="input-holder">
<input type="text" name="username" placeholder="Username" required>
</div>
<div class="input-holder">
<input type="password" name="password" placeholder="Password" required>
</div>
<div class="input-holder">
<input type="password" name="compare_password" placeholder="Confirm Password" compareTo="password" required>
</div>
<input type="submit" class="submit">
</form>
</div>
<script src="https://rawgit.com/alexbooker/compareTo/master/compareTo.min.js"></script>
</body>
</html>