$(document).ready(function(){$('#Loginform').submit(function(e){const email=$('#email').val()?.trim()||'';const password=$('#password').val()||'';if(email.length===0||password.length===0){return} setBtnLoading('button[type=submit]','Masuk')});function setBtnLoading(element,text,status=!0){const el=$(element);if(status){el.attr("disabled","");el.html(` ${text}`)}else{el.removeAttr("disabled");el.html(text)}} $("#show_hide_password a").on('click',function(event){event.preventDefault();if($('#show_hide_password input').attr("type")=="text"){$('#show_hide_password input').attr('type','password');$('#show_hide_password i').addClass("bx-hide");$('#show_hide_password i').removeClass("bx-show")}else if($('#show_hide_password input').attr("type")=="password"){$('#show_hide_password input').attr('type','text');$('#show_hide_password i').removeClass("bx-hide");$('#show_hide_password i').addClass("bx-show")}})})