Sindbad~EG File Manager
const $ = jQuery;
$( function() {
$( '.form-field input[type="password"]' ).wrap( '<span class="lp-password-input"></span>' );
$( '.lp-password-input' ).append( '<span class="lp-show-password-input"></span>' );
$( '.lp-show-password-input' ).on( 'click', function() {
$( this ).toggleClass( 'display-password' );
if ( $( this ).hasClass( 'display-password' ) ) {
$( this ).siblings( [ 'input[type="password"]' ] ).prop( 'type', 'text' );
} else {
$( this ).siblings( 'input[type="text"]' ).prop( 'type', 'password' );
}
} );
} );
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists