text: $(document).ready(function(){$("#form-login").on("click",'button[type="submit"]',function(n){if($("#form-login")[0].checkValidity()===!1)return!0;n.preventDefault();var t=$("#form-login").attr("action"),i=$("#form-login button[type='submit']"),e=i.html(),o=$("#input-email").val(),l=$("#input-password").val();return i.html('<i class="fa fa-fw fa-cog fa-spin"></i>').attr("disabled",""),$.post(t,{email:o,password:l},function(){}).done(function(n){"login_success"==n&&window.location.replace(base_url+"/profile"),"login_error"==n&&($("#login-return").html('<div class="row"><div class="medium-12 columns"><div class="alert alert-warning alert-center alert-small">E-mail e senha não coicidem.<br>Tente novamente.</div></div></div>'),setTimeout(function(){$("#login-return").html("")},5e3))}).error(function(){}).always(function(){i.html(e).removeAttr("disabled",""),console.clear()}),!1})});