File manager - Edit - /usr/local/cpanel/base/frontend/jupiter/cpguard/assets/js/dashboard.js
Back
if (wafGraphData.length > 0) { window.wafChart = Morris.Line({ element: 'wgraph', data: wafGraphData, xkey: 'date', xLabels: 'day', ykeys: ['count'], labels: [wafLabel], hideHover: 'auto', parseTime: false, resize: cjQ('.cpguard-container').hasClass('directadmin') ? false : true, redraw: true }); } if (scannerGraphData.length > 0) { window.scannerChart = Morris.Bar({ element: 'vgraph', data: scannerGraphData, xkey: 'x', ykeys: ['y'], labels: [scannerLabel], hideHover: 'auto', resize: cjQ('.cpguard-container').hasClass('directadmin') ? false : true, redraw: true, barSize: 35 }); } square_image = assets_url + '/img/no-data.jpg'; long_image = assets_url + '/img/no-data.jpg'; if (scannerGraphData.length <= 0) { cjQ('#vgraph_div').css('background-image', 'url(' + long_image + ')'); } if (wafGraphData.length <= 0) { cjQ('#wgraph_div').css('background-image', 'url(' + long_image + ')'); } if(virusDistribution.length > 0) { window.virusDistributionChart = Morris.Donut({ element: 'bgraph', data: virusDistribution.length > 0 ? virusDistribution : [{ label: '', value: '' }], formatter: function (y) { return y + "%"; }, resize: cjQ('.cpguard-container').hasClass('directadmin') ? false : true, hideHover: 'auto', redraw: true }); } cjQ(window).resize(function () { if(window.scannerChart) { window.scannerChart.redraw(); } if(window.wafChart) { window.wafChart.redraw(); } if(window.virusDistributionChart) { window.virusDistributionChart.redraw(); } });
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings