-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
31 lines (28 loc) · 1.14 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Password Strength demo</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="https://code.getmdl.io/1.2.1/material.indigo-pink.min.css">
<script defer src="https://code.getmdl.io/1.2.1/material.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/zxcvbn/4.4.0/zxcvbn.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
</head>
<body>
<div class="mdl-grid">
<div class="mdl-cell mdl-cell--4-col"> </div>
<div class="mdl-cell mdl-cell--4-col">
<h3>zxcvbn password strenght</h3>
<input id="password" class="mdl-textfield__input" type="password"/><br>
<button type="submit" onclick="calculateStrength()" onkeyup="calculateStrength()"
class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect">Strength score
</button>
<div class="row">
<p id="score"></p>
</div>
</div>
</div>
<script src="calculate.js"></script>
</body>
</html>