mirror of https://github.com/itflow-org/itflow
8 lines
737 B
JavaScript
8 lines
737 B
JavaScript
/**
|
|
* @author Abdo-Hamoud <abdo.host@gmail.com>
|
|
* https://github.com/Abdo-Hamoud/bootstrap-show-password
|
|
* version: 1.0
|
|
*/
|
|
|
|
!function(a){a(function(){a('[data-toggle="password"]').each(function(){var b = a(this); var c = a(this).parent().find(".input-group-text"); c.css("cursor", "pointer").addClass("input-password-hide"); c.on("click", function(){if (c.hasClass("input-password-hide")){c.removeClass("input-password-hide").addClass("input-password-show"); c.find(".fa").removeClass("fa-eye").addClass("fa-eye-slash"); b.attr("type", "text")} else{c.removeClass("input-password-show").addClass("input-password-hide"); c.find(".fa").removeClass("fa-eye-slash").addClass("fa-eye"); b.attr("type", "password")}})})})}(window.jQuery);
|