jquery-mobilepassword

1.0.1 • Public • Published

jquery.mobilePassword.js

Description

This is a jQuery plugin that make your password input field like mobile client interaction. We can see the last letter. 这个插件使密码输入框像移动客户端那样输入,可以明文显示最后一个字符。

支持粘贴密码,删除任何一个字符

enter image description here

  • require jQuery1.4+
  • support IE6+

How to use

$(document).ready(function() {
  $("input[type=password]").mobilePassword();
});
The following are the possible options:
$(document).ready(function() {
  $("input[type=password]").mobilePassword{
    checkInterval: 200, //set timeout to check whether all the characters are the same
    transDelay: 500,    //delay to transform last letter
    character: '%u25CF' //instead of the character
  };
});

Tip: Unicode for the symbol that will be displayed,You can find a good overview here: http://www.fileformat.info/format/w3c/entitytest.htm?sort=Unicode+Character

Licensed under the MIT and GPL licenses.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i jquery-mobilepassword

      Weekly Downloads

      1

      Version

      1.0.1

      License

      MIT

      Last publish

      Collaborators

      • ngagne