Файл: password-punch/index.html
Строк: 61
<?php
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Password Punch - jQuery Plugin</title>
<link href="assets/css/bootstrap.css" rel="stylesheet">
<!--[if lt IE 9]>
<script src="assets/js/html5shiv.min.js"></script>
<script src="assets/js/respond.min.js"></script>
<![endif]-->
<link href="assets/css/custom.css" rel="stylesheet" type="text/css" />
<link href="assets/js/password-punch/password.punch.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="max600">
<div class="col-md-12 marginTop">
<h1>Create an account</h1>
<form id="form" method="post">
<div class="form-group">
<label class="control-label">Email Address</label>
<input type="email" id="email" class="form-control" placeholder="Email Address" />
</div>
<div class="form-group">
<label class="control-label"> Password</label>
<input type="password" id="password" class="form-control" placeholder="Password" />
<div id="password_rules_container"></div>
</div>
<div class="text-center">
<button class="btn btn-success btn-lg" id='submitButton' type="submit">
Create Account
</button>
</div>
</form>
</div>
</div>
<script src="assets/js/jquery.min.js" type="text/javascript"></script>
<script src="assets/js/password-punch/jquery.password.punch.js" type="text/javascript"></script>
<script>
$(document).ready(function () {
$('#password').passwordPunch({
rules: {
uppercase: {label: 'Two Upper case characters', limit: 2},
lowercase: {label: 'One Lower case character', limit: 1},
number: {label: 'One number', limit: 1},
special_char: {label: 'One special chracter', limit: 1},
min_length: {label: '6 Characters', limit: 6}
},
onValidationCompleted: function () {
},
onValidationError: function () {
}
});
});
</script>
</body>
</html>
?>