1var getParam = function () { 2 try{ 3 var url = window.location.href; 4 var result = url.split("?")[1]; 5 var keyValue = result.split("&"); 6 var obj = {}; 7 for(var i = 0; i < keyValue.length; i++) { 8 var item = keyValue[i].split("="); 9 obj[item[0]] = item[1]; 10 } 11 return obj; 12 }catch(e){} 13}; 14 15$(function(){ 16 var params = getParam(); 17 if(params==undefined) return; 18 //ÊÇ·ñÏÔʾÈÈÁ¦Í¼ hot=1(ÏÔʾ), hot!=1(²»ÏÔʾ) 19 var hot = params.hot; 20 if($.trim(hot)=="1"){ 21 var heatmapInstance = h337.create({ 22 container: document.querySelector('#heatMap') 23 }); 24 //ÉèÖÃheatMap_rums²ÎÊý 25 var param = $("#heatMap_rums").attr("data"); 26 $.post("/creatorCMS/heatMap/getHeatMapData.page?"+param, 27 {"ctime":params.ctime,"etime":params.etime}, 28 function(data){ 29 var jsonData = jQuery.parseJSON(data); 30 var maxnum = 0; 31 for(var i=0;i<jsonData.length;i++){ 32 var d = jsonData[i]; 33 var item ={}; 34 item.x = d.x; 35 item.y = d.y; 36 item.value = d.value; 37 maxnum = Math.max(maxnum, d.value); 38 heatmapInstance.addData(item); 39 } 40 heatmapInstance.setDataMin(0); 41 heatmapInstance.setDataMax(maxnum); 42 }); 43 } 44});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.