This commit is contained in:
2024-11-20 12:54:11 +07:00
parent 523680a350
commit bb5c579630
2136 changed files with 597821 additions and 8689 deletions
+23
View File
@@ -0,0 +1,23 @@
(function ($) {
"use strict";
/*----------------------------------------
passward show hide
----------------------------------------*/
$('.show-hide').show();
$('.show-hide span').addClass('show');
$('.show-hide span').click(function () {
if ($(this).hasClass('show')) {
$('input[name="login[password]"]').attr('type', 'text');
$(this).removeClass('show');
} else {
$('input[name="login[password]"]').attr('type', 'password');
$(this).addClass('show');
}
});
$('form button[type="submit"]').on('click', function () {
$('.show-hide span').text('Show').addClass('show');
$('.show-hide').parent().find('input[name="login[password]"]').attr('type', 'password');
});
})(jQuery);