"Password Strength Meter"
Bootstrap 3.3.0 Snippet by mrmccormack

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
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="row" id="pwd-container">
<div class="col-md-4"></div>
<div class="col-md-4">
<section class="login-form">
<form method="post" action="#" role="login">
<img src="http://i.imgur.com/RcmcLv4.png" class="img-responsive" alt="" />
<input type="email" name="email" placeholder="Email" required class="form-control input-lg" value="joestudent@gmail.com" />
<input type="password" class="form-control input-lg" id="password" placeholder="Password" required="" />
<div class="pwstrength_viewport_progress"></div>
<button type="submit" name="go" class="btn btn-lg btn-primary btn-block">Sign in</button>
<div>
<a href="#">Create account</a> or <a href="#">reset password</a>
</div>
</form>
<div class="form-links">
<a href="#">www.website.com</a>
</div>
</section>
</div>
<div class="col-md-4"></div>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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
@CHARSET "UTF-8";
/*
over-ride "Weak" message, show font in dark grey
*/
.progress-bar {
color: #333;
}
/*
Reference:
http://www.bootstrapzen.com/item/135/simple-login-form-logo/
*/
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
outline: none;
}
.form-control {
position: relative;
font-size: 16px;
height: auto;
padding: 10px;
@include box-sizing(border-box);
&:focus {
z-index: 2;
}
}
body {
background: url(http://i.imgur.com/GHr12sH.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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
/*
* jQuery Password Strength plugin for Twitter Bootstrap
*
* Copyright (c) 2008-2013 Tane Piper
* Copyright (c) 2013 Alejandro Blanco
* Dual licensed under the MIT and GPL licenses.
*/
jQuery(document).ready(function() {
"use strict";
var options = {};
options.ui = {
container: "#pwd-container",
showVerdictsInsideProgressBar: true,
viewports: {
progress: ".pwstrength_viewport_progress"
}
};
options.common = {
debug: true,
onLoad: function() {
$('#messages').text('Start typing password');
}
};
$(':password').pwstrength(options);
});
(function (jQuery) {
// Source: src/rules.js
var rulesEngine = {};
try {
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments:

I don't know why but the login box appears aligned to the left of my browsers and I can't center it. Please help

luciano () - 8 years ago - Reply 0


may be i found bug....
When input password
typing like this "csedcsed...."
verdicts was does not show.
with this words "Your password contains sequences"

Anyway i really want this function. finally i got this. Thank you very much. Your are the best.

sunnyMoon3 () - 9 years ago - Reply 0


i think what i meant by contains sequences is your password have repeated value in a row... just an opinion, do correct me if im wrong...

dollylollypop88 () - 9 years ago - Reply 0