Added Boostrap Password Reveal Library and clipboardJS library added copy to clipboard to client logins
This commit is contained in:
31
plugins/Show-Hide-Passwords-Bootstrap-4/bootstrap-show-password.js
vendored
Normal file
31
plugins/Show-Hide-Passwords-Bootstrap-4/bootstrap-show-password.js
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
* @author Abdo-Hamoud <abdo.host@gmail.com>
|
||||
* https://github.com/Abdo-Hamoud/bootstrap-show-password
|
||||
* version: 1.0
|
||||
*/
|
||||
|
||||
!function ($) {
|
||||
//eyeOpenClass: 'fa-eye',
|
||||
//eyeCloseClass: 'fa-eye-slash',
|
||||
'use strict';
|
||||
|
||||
$(function () {
|
||||
$('[data-toggle="password"]').each(function () {
|
||||
var input = $(this);
|
||||
var eye_btn = $(this).parent().find('.input-group-text');
|
||||
eye_btn.css('cursor', 'pointer').addClass('input-password-hide');
|
||||
eye_btn.on('click', function () {
|
||||
if (eye_btn.hasClass('input-password-hide')) {
|
||||
eye_btn.removeClass('input-password-hide').addClass('input-password-show');
|
||||
eye_btn.find('.fa').removeClass('fa-eye').addClass('fa-eye-slash')
|
||||
input.attr('type', 'text');
|
||||
} else {
|
||||
eye_btn.removeClass('input-password-show').addClass('input-password-hide');
|
||||
eye_btn.find('.fa').removeClass('fa-eye-slash').addClass('fa-eye')
|
||||
input.attr('type', 'password');
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
}(window.jQuery);
|
||||
Reference in New Issue
Block a user