PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/logokingdom.online/wp-content/plugins/wp-live-chat-support/js/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : //home/trave494/logokingdom.online/wp-content/plugins/wp-live-chat-support/js/reporting.js

jQuery(function() {
    jQuery( "#reporting_tabs" ).tabs().addClass( "ui-tabs-vertical ui-helper-clearfix" );
    jQuery( "#reporting_tabs li" ).removeClass( "ui-corner-top" ).addClass( "ui-corner-left" );
});

if( typeof wplc_reporting_statistics !== 'undefined' ){

	var data = JSON.parse( wplc_reporting_statistics );


	var urls = [];

	var temp = ['URL', 'Count'];

	urls.push(temp);

	jQuery.each(data.individual_urls_counted, function(key, val){
		var temp = [ key, val ];
		urls.push(temp);
	});

	var chat_totals = [];

	var temp2 = ['Date', 'Count'];

	chat_totals.push(temp2);

	jQuery.each(data.daily_chat_totals, function(key, val){
		var temp2 = [ key, val ];
		chat_totals.push(temp2);
	});
	

}

google.charts.load('current', {'packages':['corechart', 'bar']});

google.charts.setOnLoadCallback(drawChart);
function drawChart() {

	var data = google.visualization.arrayToDataTable(urls);

	var options = {
	  legend: 'none',

	};

	var chart = new google.visualization.PieChart(document.getElementById('popular_pages_graph'));

	jQuery("body").on("click", "#reporting_tabs li", function(){
		chart.draw(data, options);
	});
	
}

google.charts.setOnLoadCallback(drawChart2);

function drawChart2() {
	var data = google.visualization.arrayToDataTable(chat_totals);

	var options = {
	  	legend: { position: 'none' },
	};

	var chart = new google.charts.Bar(document.getElementById('columnchart_material'));

	chart.draw(data, options);
	
	jQuery("body").on("click", "#reporting_tabs li", function(){
		chart.draw(data, options);
	});
}