function hexToRGB(o,i){var l=parseInt(o.slice(1,3),16),e=parseInt(o.slice(3,5),16),r=parseInt(o.slice(5,7),16);return i?"rgba("+l+", "+e+", "+r+", "+i+")":"rgb("+l+", "+e+", "+r+")"}$(document).ready(function(){function i(){var o,i=["#3bafda","#1abc9c"];(o=$("#sparkline1").data("colors"))&&(i=o.split(",")),$("#sparkline1").sparkline([0,23,43,35,44,45,56,37,40],{type:"line",width:"100%",height:"165",chartRangeMax:50,lineColor:i[0],fillColor:hexToRGB(i[0],.3),highlightLineColor:"rgba(0,0,0,.1)",highlightSpotColor:"rgba(0,0,0,.2)",maxSpotColor:!1,minSpotColor:!1,spotColor:!1,lineWidth:1}),$("#sparkline1").sparkline([25,23,26,24,25,32,30,24,19],{type:"line",width:"100%",height:"165",chartRangeMax:40,lineColor:i[1],fillColor:hexToRGB(i[1],.3),composite:!0,highlightLineColor:"rgba(0,0,0,.1)",highlightSpotColor:"rgba(0,0,0,.2)",maxSpotColor:!1,minSpotColor:!1,spotColor:!1,lineWidth:1}),i=["#3bafda"],(o=$("#sparkline2").data("colors"))&&(i=o.split(",")),$("#sparkline2").sparkline([3,6,7,8,6,4,7,10,12,7,4,9,12,13,11,12],{type:"bar",height:"165",barWidth:"10",barSpacing:"3",barColor:i}),i=["#e3eaef","#3bafda","#1abc9c","#f1556c"],(o=$("#sparkline3").data("colors"))&&(i=o.split(",")),$("#sparkline3").sparkline([20,40,30,10],{type:"pie",width:"165",height:"165",sliceColors:i}),i=["#f672a7","#3bafda"],(o=$("#sparkline4").data("colors"))&&(i=o.split(",")),$("#sparkline4").sparkline([0,23,43,35,44,45,56,37,40],{type:"line",width:"100%",height:"165",chartRangeMax:50,lineColor:i[0],fillColor:"transparent",lineWidth:1,highlightLineColor:"rgba(0,0,0,.1)",highlightSpotColor:"rgba(0,0,0,.2)",maxSpotColor:!1,minSpotColor:!1,spotColor:!1}),$("#sparkline4").sparkline([25,23,26,24,25,32,30,24,19],{type:"line",width:"100%",height:"165",chartRangeMax:40,lineColor:i[1],fillColor:"transparent",composite:!0,lineWidth:1,maxSpotColor:!1,minSpotColor:!1,spotColor:!1,highlightLineColor:"rgba(0,0,0,1)",highlightSpotColor:"rgba(0,0,0,1)"}),i=["#f1556c","#1abc9c"],(o=$("#sparkline6").data("colors"))&&(i=o.split(",")),$("#sparkline6").sparkline([3,6,7,8,6,4,7,10,12,7,4,9,12,13,11,12],{type:"bar",height:"165",barWidth:"10",barSpacing:"3",barColor:i[1]}),$("#sparkline6").sparkline([3,6,7,8,6,4,7,10,12,7,4,9,12,13,11,12],{type:"line",width:"100%",height:"165",lineColor:i[0],lineWidth:1,composite:!0,fillColor:"rgba(227,234,239,0.3)",highlightLineColor:"rgba(0,0,0,.1)",highlightSpotColor:"rgba(0,0,0,.2)"})}var l;DrawMouseSpeed=function(){var r,e=-1,a=-1,t=0,n=[];$("html").mousemove(function(o){var i=o.pageX,l=o.pageY;-1<e&&(t+=Math.max(Math.abs(i-e),Math.abs(l-a))),e=i,a=l});var h=function(){var o=(new Date).getTime();if(r&&r!=o){var i=Math.round(t/(o-r)*1e3);n.push(i),30<n.length&&n.splice(0,1),t=0;var l=["#1abc9c"],e=$("#sparkline5").data("colors");e&&(l=e.split(",")),$("#sparkline5").sparkline(n,{tooltipSuffix:" pixels per second",type:"line",width:"100%",height:"165",chartRangeMax:77,maxSpotColor:!1,minSpotColor:!1,spotColor:!1,lineWidth:1,lineColor:l,fillColor:hexToRGB(l[0],.3),highlightLineColor:"rgba(24,147,126,.1)",highlightSpotColor:"rgba(24,147,126,.2)"})}r=o,setTimeout(h,500)};setTimeout(h,500)},i(),DrawMouseSpeed(),$(window).resize(function(o){clearTimeout(l),l=setTimeout(function(){i(),DrawMouseSpeed()},300)})});