Файл: password-punch/blank.html
Строк: 37
<?php
<!DOCTYPE html>
<html lang="en">
<head>
<title>Password Punch - Blank Example</title>
<link href="assets/js/password-punch/password.punch.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div style="text-align: center; margin-top: 20px;"><input type="password" id="password" class="form-control" placeholder="Password" /></div>
<div id="password_rules_container"></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>
?>