reports.php

(开头部分) 7KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。


<link rel="stylesheet" href="css/style.default.css" type="text/css" />
<script type="text/javascript" src="js/plugins/jquery-1.7.min.js"></script>
<script type="text/javascript" src="js/plugins/jquery-ui-1.8.16.custom.min.js"></script>
<script type="text/javascript" src="js/plugins/jquery.cookie.js"></script>
<script type="text/javascript" src="js/plugins/jquery.flot.min.js"></script>
<script type="text/javascript" src="js/plugins/jquery.flot.pie.js"></script>
<script type="text/javascript" src="js/plugins/jquery.flot.resize.min.js"></script>
<script type="text/javascript" src="js/custom/general.js"></script>

<script language="javascript">


jQuery(document).ready(function(){		
		
		
		/*****折线图*****/
		<?php
		$shuju1= "[0, 20], [1, 6], [2,30], [3, 8], [4, 5], [5, 13], [6, 80], [7, 33],[8, 22],[9, 11],[10, 25],[11, 67],[12, 88]";
		$shuju2="[0, 50], [1, 40], [2,4], [3, 10], [4, 9], [5, 10], [6, 13], [7, 65], [8, 26],[9, 1],[10, 99],[11, 45],[12, 55]";
		$shuju3="[0, 3], [1, 10], [2,80], [3, 4], [4, 30], [5, 20], [6, 57], [7, 11], [8, 33],[9, 67],[10, 69],[11, 54],[12, 11]";
		?>
		var flash = [<?php echo $shuju1?>];
		var html5 = [<?php echo $shuju2?>];
		var hsg1 = [<?php echo $shuju3?>];
			
		function showTooltip(x, y, contents) {
			jQuery('<div id="tooltip" class="tooltipflot">' + contents + '</div>').css( {
				position: 'absolute',
				display: 'none',
				top: y + 5,
				left: x + 5
			}).appendTo("body").fadeIn(200);
		}
	
			
		var plot = jQuery.plot(jQuery("#chartplace"),
			   [ { data: flash, label: "数据1", color: "#069"}, { data: html5, label: "数据2", color: "#FF6600"} , { data: hsg1, label: "数据3", color: "#CC3333"} ], {
				   series: {
					   lines: { show: true, fill: true, fillColor: { colors: [ { opacity: 0.05 }, { opacity: 0.15 } ] } },
					   points: { show: true }
				   },
				   legend: { position: 'nw'},
				   grid: { hoverable: true, clickable: true, borderColor: '#ccc', borderWidth: 1, labelMargin: 10 },
				   yaxis: { min: 0, max: 100 } //设置Y坐标最大高度
				 });
		
		var previousPoint = null;
		jQuery("#chartplace").bind("plothover", function (event, pos, item) {
			jQuery("#x").text(pos.x.toFixed(2));
			jQuery("#y").text(pos.y.toFixed(2));
			
			if(item) {
				if (previousPoint != item.dataIndex) {
					previousPoint = item.dataIndex;
						
					jQuery("#tooltip").remove();
					var x = item.datapoint[0].toFixed(2),
					y = item.datapoint[1].toFixed(2);
						
后面还有 176 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。