-
Notifications
You must be signed in to change notification settings - Fork 10
/
demo.html
58 lines (53 loc) · 1.25 KB
/
demo.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Password Strength : Example</title>
<style type="text/css">
body {
padding: 50px;
}
h1 a {
color: #000;
}
input {
border: 1px solid #999;
margin: 0 5px;
}
.password_strength {
padding: 0 5px;
display: inline-block;
}
.password_strength_1 {
background-color: #fcb6b1;
}
.password_strength_2 {
background-color: #fccab1;
}
.password_strength_3 {
background-color: #fcfbb1;
}
.password_strength_4 {
background-color: #dafcb1;
}
.password_strength_5 {
background-color: #bcfcb1;
}
</style>
</head>
<body>
<h1><a href="http://plugins.jquery.com/project/password_strength">Password Strength</a>: Demo</h1>
<form method="post" action="">
<p>
<label for="password">Enter Password:</label>
<input type="password" name="password" id="password" value="" />
</p>
</form>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.min.js"></script>
<script type="text/javascript" src="jquery.password_strength.js"></script>
<script type="text/javascript">
$('form').attr('autocomplete', 'off');
$('#password').password_strength();
</script>
</body>
</html>