"use strict";function verify(){var i=$("#txtUserName").val(),e=$("#txtPwd").val();if(i)if(e){e=md5(e);var t=$("#btnLogin");t.find("i").removeClass("fa-sign-in-alt").addClass("fa-circle-o-notch fa-spin"),t.attr("disabled","disabled"),$.ajax({url:"/login",type:"Post",data:{UserName:i,Password:e},success:function(i){!0===i.valid?window.location.href=i.returnTo:(swal({title:i.message,type:"error",showConfirmButton:!1,timer:2e3}),t.find("i").removeClass("fa-circle-o-notch fa-spin").addClass("fa-sign-in-alt"),t.removeAttr("disabled"))}})}else $("#txtPwd").focus();else $("#txtUserName").focus()}$(function(){$.supersized({slide_interval:3e3,transition:1,transition_speed:3e3,performance:1,min_width:0,min_height:0,vertical_center:1,horizontal_center:1,fit_always:0,fit_portrait:1,fit_landscape:0,slide_links:"blank",thumbnail_navigation:0,slides:[{image:"/static/images/s1.jpg"},{image:"/static/images/s2.jpg"},{image:"/static/images/s3.jpg"}],progress_bar:1}),$("#txtUserName").focus(),$("#btnLogin").on("click",function(){verify()}),$(document).on({keypress:function(i){13!==i.which&&10!==i.which||verify()}},"#txtUserName, #txtPwd")});