⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sparkline.js

📁 Piwik#Opensourcewebanalytics一款可以和GOOGLE媲美的开源统计系统,运用AJAX.功能强大.无色提示:按照需要PHP5.1以上和MySQL数据库支持。
💻 JS
字号:
$(document).ready( function(){	//for every section	$("a[name='evolutionGraph']").each(		function()		{			//try to find the graph			var graph = $(this);					if(graph && graph.size() > 0)			{				//try to find sparklines and add them clickable behaviour				$(this).parent().find('p').each(					function()					{						var url = "";						//find the sparkline and get it's src attribute						$(".sparkline", this).each(							function()							{								//search viewDataTable parameter and replace it with value for chart								var reg = new RegExp("(viewDataTable=sparkline)", "g");								url = this.src.replace(reg,'viewDataTable=generateDataChartEvolution');							}						);												if(url != "")						{							$("*", this).each(								function()								{									//on click, reload the graph with the new url									$(this).click(										function()										{												//get the main page graph and reload with new data											findSWFGraph(graph.attr('graphId')+"Chart_swf").reload(url);											lazyScrollTo(graph[0], 400);										}									);																		//on hover, change cursor to indicate clickable item									$(this).hover(										function()										{  									 		$(this).css({ cursor: "pointer"}); 									  	}, function (){}									);								}							);						}					}				);			}		}	);});

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -