OwlCyberSecurity - MANAGER
Edit File: cleantalk-dashboard-widget.min.js
jQuery(document).ready(function(){jQuery(".ct_widget_refresh_link").on("click",function(){jQuery(".ct_preloader").show(),setTimeout(function(){window.scrollTo(0,jQuery("#ct_widget_wrapper").offset().top-130)},1),setTimeout(function(){jQuery("#ct_refresh_form").submit()},2500)}),"#ct_widget"==location.hash&&setTimeout(function(){window.scrollTo(0,jQuery("#ct_widget_wrapper").offset().top-130)},1),jQuery("#ct_widget_wrapper").parent().css("padding",0),locale=navigator.language||navigator.userLanguage;var o=new Intl.DateTimeFormat(locale,{month:"short",day:"numeric"});var e=document.getElementById("ct_widget_chart"),t=(t=>{var a={labels:[],counts:[]};for(let e=0;e<t.length;e++)a.labels.push(o.format(new Date(t[e][0]))),a.counts.push(t[e][1]);return a})(apbctDashboardWidget.data);new Chart(e,{type:"bar",data:{labels:t.labels,datasets:[{label:"Requests blocked",data:t.counts,borderWidth:1,backgroundColor:"steelblue"}]},options:{legend:{display:!1},maintainAspectRatio:!1,responsive:!0,scales:{y:{beginAtZero:!0}},title:{display:!0,text:"Requests were blocked by Anti-Spam and SpamFireWall",fontSize:18},plugins:{legend:{display:!1},title:{display:!0,text:"Requests were blocked by Anti-Spam and SpamFireWall",font:{size:18}}},elements:{bar:{backgroundColor:"steelblue"}},animations:{tension:{duration:1e3,easing:"linear",from:1,to:0,loop:!0}}}})}); //# sourceMappingURL=cleantalk-dashboard-widget.min.js.map