Current File : /home/n742ef5/.trash/wp-content.3/plugins/security-malware-firewall/js/spbc-common.min.js
function spbc_timestamp(){return Math.floor(+new Date/1e3)}function spbcHighlightElement(e,r){r=r-1||0,jQuery("html, body").animate({scrollTop:jQuery(jQuery("#"+e)).offset().top-100},"slow"),jQuery("#"+e).addClass("spbc_highlighted"),jQuery("#"+e).animate({outlineColor:"rgba(255, 0, 0, 1.0)"},400,"linear",function(){jQuery("#"+e).animate({outlineColor:"rgba(255, 0, 0, 0.0)"},400,"linear",function(){0<r?spbcHighlightElement(e,r):jQuery("#"+e).removeClass("spbc_highlighted")})})}function spbc_sendAJAXRequest(o,t,n){var e=t.notJson?"text":"json",s=t.button||null,l=t.spinner||null,i=t.progressbar||null,a=t.callback||null,u=t.notJson||null,r=t.timeout||15e3,n=n||null,c=t.context||this,y=(s&&(s.setAttribute("disabled","disabled"),s.style.cursor="not-allowed"),l&&(Array.isArray(l)?l.forEach(function(e){jQuery(e).css("display","inline")}):jQuery(l).css("display","inline")),o.security=spbcSettings.ajax_nonce,o.no_cache=Math.random(),t.success||function(e){var r;s&&(s.removeAttribute("disabled"),s.style.cursor="pointer"),l&&(Array.isArray(l)?l.forEach(function(e){jQuery(e).css("display","none")}):jQuery(l).css("display","none")),(e=u||"object"==typeof e?e:JSON.parse(e)).error?(setTimeout(function(){i&&i.fadeOut("slow")},1e3),r=void 0!==e.error_comment?e.error_comment:null,p(e.error,r)):a&&a(e,o,t,n)}),d=t.error||function(e,r,o){s&&(s.removeAttribute("disabled"),s.style.cursor="pointer"),l&&(Array.isArray(l)?l.forEach(function(e){jQuery(e).css("display","none")}):jQuery(l).css("display","none")),console.log("%c APBCT_AJAX_ERROR","color: red;"),console.log(r),console.log(o),console.log(e),p(r)},p=t.errorOutput||function(e){};jQuery.ajax({context:c,type:"POST",url:spbcSettings.ajaxurl,data:o,dataType:e,success:y,error:d,timeout:r})}
//# sourceMappingURL=spbc-common.min.js.map