Pass Meter jQuery plugin

码农软件 · 软件分类 · 其他jQuery插件 · 2020-01-08 06:43:23

软件介绍

You can use this plugin to show a background image into a HTML password input element to indicate the strength of the password.

This plugin has been probed in the last versions of Firefox, Opera, Internet Explorer and Safari, with jQuery 1.2 version.

Use is quite simple, as you can view in the example that include the plugin. Bassically you can attach and detach password meters into HTML password input:

$('input#mypassword').attachPassMeter();

To detach a password meter you can use the other public method:

$('input#mypassword').detachPassMeter();

You can especify some options to the plugin when call to the first method. The default options are this:

var options = {
  useSkin: 'default',
  skinsPath: './skins/',
  bgRepeat: 'no-repeat',
  bgPosition: 'center right'
};
$('input#mypassword').attachPassMeter(options);

The most important options are the "skinsPath", used by plugin to find the appropiate skin to use their images to show the password meters.

You can specify another skin, wich corresponde with a subfolder of skins directory, and can contain different images to show the password meter level.

This plugin is inspired by Password strength meter jQuery plugin by Firas Kassem. In fact, the main methods of the plugin is taken from the plugin of Firas. Thanks!

Thanks so much too Mike Alsup for their article jQuery plugin pattern.

本文地址:https://codercto.com/soft/d/22903.html

关乎天下

关乎天下

关明生 / 学林出版社 / 2005-8 / 8.00元

《关乎天下:中小企业赢取江山的秘诀》收录了作者多年在大企业(如阿里巴巴网站)从事管理基层得到的经验,可为众多中小企业提供招贤纳士和销售管理方面的新思路。一起来看看 《关乎天下》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试