表单/表格

显示隐藏和复制表单密码字段jQuery插件

阿里云


jQuery-peeper 是一款 jQuery 显示隐藏和复制表单密码字段插件。该插件提供多种方式显示和隐藏表单 password 字段的密码,并额外提供复制密码字段为纯文本的功能。
在页面中引入下面的文件。

使用方法

  1. <link rel="stylesheet" href="/jquery-peeper/dist/css/jquery-peeper.min.css" />
  2. <script src="/path/to/jquery.js"></script>
  3. <script src="/path/to/jquery-peeper.min.js"></script>
也想出现在这里?联系我们
创客主机

初始化插件

  1. $(function() {
  2.     $("#password1").peeper();
  3. });

配置参数

  1. $(function() {
  2.     $("#password1").peeper({
  3.     showEvent: 'mouseup', // event to show password 
  4.     showElement: '.peeper-mask', // DOM element (eg. button to show password)
  5.     mask: true, // show mask
  6.     maskOpacity: 1, //mask opacity (eg. 0.5)
  7.     autohide: true, // hide password after time
  8.     autohideTime: 4000, // hide password time in ms
  9.     maskCss: 'gray', // mask style (eg. red, green, blue or custom)
  10.     showPasswordCss: 'fa fa-key', // show password icon/style
  11.     copyPasswordCss: 'fa fa-copy', // copy password icon/style
  12.     showCopyBtn: true, // copy password button
  13.     showPasswordBtn: true, // show password button
  14.     animateDuration: 300 // mask animation time
  15.     });
  16. });

Github 网址:https://github.com/msztorc/jquery-peeper

显示隐藏和复制表单密码字段 jQuery 插件

已有 360 人购买
  • yz15
查看演示升级 VIP立刻购买

演示地址 下载地址
收藏
(0)

发表回复

热销模板

Ashade - 作品展示摄影相册WordPress汉化主题
LensNews

本站承接 WordPress / PbootCMS / DedeCMS 等
系统建站、仿站、开发、定制等业务!