-
Notifications
You must be signed in to change notification settings - Fork 19
/
examples.html
120 lines (118 loc) · 3.79 KB
/
examples.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
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
<html>
<head>
<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<script src="jquery.strengthify.js"></script>
<link rel="stylesheet" href="strengthify.css" type="text/css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<style type="text/css">
.password-group {
padding: 10px;
width: 250px;
}
input {
width: 100%;
}
</style>
</head>
<body>
<div class="password-group">
<label for="p1">Standard 1</label>
<input id="p1" class="password-field">
</div>
<div class="password-group">
<label for="p2">Standard 2</label>
<input id="p2" class="password-field">
</div>
<div class="password-group">
<label for="p3">drawTitles, drawMessage, drawBars</label>
<input id="p3" class="password-field-all">
</div>
<div class="password-group">
<label for="p4">drawMessage, drawBars</label>
<input id="p4" class="password-field-minus-titles">
</div>
<div class="password-group">
<label for="p5">drawTitles, drawBars</label>
<input id="p5" class="password-field-minus-message">
</div>
<div class="password-group">
<label for="p6">drawTitles, drawMessage</label>
<input id="p6" class="password-field-minus-bars">
</div>
<div class="password-group">
<label for="p7">drawMessage</label>
<input id="p7" class="password-field-only-message">
</div>
<div class="password-group">
<label for="p8">drawTitles</label>
<input id="p8" class="password-field-only-title">
</div>
<div class="password-group">
<label for="p9">drawTitlesWithoutTooltip</label>
<input id="p9" class="password-field-title-without-tooltip">
</div>
<div class="password-group">
<label for="p10">drawTitlesTooltipAndElement</label>
<input id="p10" class="password-field-title-tooltip-element">
</div>
<script type="text/javascript">
$('.password-field').strengthify({
zxcvbn: 'https://cdn.rawgit.com/dropbox/zxcvbn/master/dist/zxcvbn.js'
})
$('.password-field-all').strengthify({
zxcvbn: 'https://cdn.rawgit.com/dropbox/zxcvbn/master/dist/zxcvbn.js',
drawTitles: true,
drawMessage: true
})
$('.password-field-minus-titles').strengthify({
zxcvbn: 'https://cdn.rawgit.com/dropbox/zxcvbn/master/dist/zxcvbn.js',
drawTitles: false,
drawMessage: true
})
$('.password-field-minus-message').strengthify({
zxcvbn: 'https://cdn.rawgit.com/dropbox/zxcvbn/master/dist/zxcvbn.js',
drawTitles: true,
drawMessage: false
})
$('.password-field-minus-bars').strengthify({
zxcvbn: 'https://cdn.rawgit.com/dropbox/zxcvbn/master/dist/zxcvbn.js',
drawTitles: true,
drawMessage: true,
drawBars: false
})
$('.password-field-only-message').strengthify({
zxcvbn: 'https://cdn.rawgit.com/dropbox/zxcvbn/master/dist/zxcvbn.js',
drawTitles: false,
drawMessage: true,
drawBars: false
})
$('.password-field-only-title').strengthify({
zxcvbn: 'https://cdn.rawgit.com/dropbox/zxcvbn/master/dist/zxcvbn.js',
drawTitles: true,
drawMessage: false,
drawBars: false
})
$('.password-field-title-without-tooltip').strengthify({
zxcvbn: 'https://cdn.rawgit.com/dropbox/zxcvbn/master/dist/zxcvbn.js',
tilesOptions:{
tooltip: false,
element: true
},
drawTitles: true,
drawMessage: false,
drawBars: true
})
$('.password-field-title-tooltip-element').strengthify({
zxcvbn: 'https://cdn.rawgit.com/dropbox/zxcvbn/master/dist/zxcvbn.js',
tilesOptions:{
tooltip: true,
element: true
},
drawTitles: true,
drawMessage: false,
drawBars: false
})
</script>
</body>
</html>