You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
216 B

  1. $(function () {
  2. var $pw = $("#password");
  3. var $meter = $("#meter");
  4. $pw.on("input", function() {
  5. var result = zxcvbn($pw.val());
  6. $meter.attr("class", "score-" + result.score);
  7. });
  8. });