/*** Created by A.J on 2019/10/31.*/$(document).ready(function(){$("#captcha, #resetcaptcha").click(function(){$("#captcha").attr("src",$("#captcha").attr("src")+"?"+Math.random());$("#captchain").val("");});$("#submit").on("click", function(){var subobj = $(this);subobj.children("i").removeClass("d-none");$.post("", subobj.parents("form").serialize(),function(data){subobj.children("i").addClass("d-none");if(data == "ok"){var obj = $.alert({title: "",content: $("#reok").html(),buttons: {confirm: {text: $('#queding').text(),btnClass: 'btn-info',keys: ['enter'],action: function () {window.location.href = $("#logurl").text();}}}});setTimeout(function(){obj.close();window.location.href = $("#logurl").text();},2000);}else{$("#captcha").attr("src",$("#captcha").attr("src")+"?"+Math.random());$("#captchain").val("");var jc = $.alert({title: $('#chucuo').text(),content: data,buttons: {confirm: {text: $('#queding').text(),btnClass: 'btn-info',keys: ['enter']}}});}});});});