|
Server : LiteSpeed System : Linux quebec.us.hostns.io 5.14.0-687.42.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Aug 27 11:55:12 EDT 2026 x86_64 User : gazetufm ( 1431) PHP Version : 8.1.35 Disable Function : NONE Directory : /home2/gazetufm/www/wp/wp-content/plugins/wp-statistics/assets/dev/javascript/pages/ | |
|
Path: //home2/gazetufm/www/wp/wp-content/plugins/wp-statistics/assets/dev/javascript/pages/exclusions.js
Size: 1.02 KB
Permissions: 0644
if (wps_js.isset(wps_js.global, 'request_params', 'page') && wps_js.global.request_params.page === "exclusions") {
function renderChart(chartId, data) {
const chartElement = document.getElementById(chartId);
if (chartElement) {
const parentElement = jQuery(`#${chartId}`).parent();
const placeholder = wps_js.rectangle_placeholder();
parentElement.append(placeholder);
if (!data?.data?.datasets || data.data.datasets.length === 0) {
parentElement.html(wps_js.no_results());
jQuery('.wps-ph-item').remove();
} else {
jQuery('.wps-ph-item').remove();
jQuery('.wps-postbox-chart--data').removeClass('c-chart__wps-skeleton--legend');
parentElement.removeClass('c-chart__wps-skeleton');
wps_js.new_line_chart(data, chartId, null);
}
}
}
const data = Wp_Statistics_Exclusions_Object.exclusions_chart_data;
renderChart('exclusionsChart', data);
}