PageSourceSearch

http://statics.haiwainet.cn/js/tongji/quanwang_diceng_tongji.js

js haiwainet.cn collected 2026-09-24 19:37:57 UTC 16,487 bytes, 441 lines download raw bytes

1//神策统计
2// var SensorsEvent;
3// (function(para) {
4//   var p = para.sdk_url, n = para.name, w = window, d = document, s = 'script',x = null,y = null;
5//   if(typeof(w['sensorsDataAnalytic201505']) !== 'undefined') {
6//       return false;
7//   }
8//   w['sensorsDataAnalytic201505'] = n;
9//   w[n] = w[n] || function(a) {return function() {(w[n]._q = w[n]._q || []).push([a, arguments]);}};
10//   var ifs = ['track','quick','register','registerPage','registerOnce','trackSignup', 'trackAbtest', 'setProfile','setOnceProfile','appendProfile', 'incrementProfile', 'deleteProfile', 'unsetProfile', 'identify','login','logout','trackLink','clearAllRegister','getAppStatus'];
11//   for (var i = 0; i < ifs.length; i++) {
12//     w[n][ifs[i]] = w[n].call(null, ifs[i]);
13//   }
14//   if (!w[n]._t) {
15//     x = d.createElement(s), y = d.getElementsByTagName(s)[0];
16//     x.async = 1;
17//     x.src = p;
18//     x.setAttribute('charset','UTF-8');
19//     y.parentNode.insertBefore(x, y);
20//     w[n].para = para;
21//   }
22// })({
23//   sdk_url: 'https://statics.haiwainet.cn/js/sa-sdk-javascript/sensorsdata.min.js',
24//   heatmap_url: 'https://statics.haiwainet.cn/js/sa-sdk-javascript/heatmap.min.js',
25//   name: 'sensors',
26//   server_url: 'https://tj.haiwainet.cn/sa?project=hwwPCWap',
27//   heatmap: {
28//          //是否开启点击图,默认 default 表示开启,自动采集 $WebClick 事件,可以设置 'not_collect' 表示关闭
29//          clickmap:'not_collect',
30//          //是否开启触达注意力图,默认 default 表示开启,自动采集 $WebStay 事件,可以设置 'not_collect' 表示关闭
31//          scroll_notice_map:'not_collect'
32//       }
33// });
34// (function(){
35//   try{
36//     var re=/\d+/gi;
37//     var urls=window.location.href.match(re); 
38//     if(typeof sensorsConData!="undefined"){
39//         if(sensorsConData.templateType=="4"){
40//           var objbox={
41//              platform:"web",
42//              content_id:sensorsConData["event"].content_id,
43//              content_name:sensorsConData["event"].content_name,
44//              channel_id:sensorsConData["event"].channel_id,
45//              channel_name:sensorsConData["event"].channel_name
46//           }
47//           var k=0
48//           for (var i=0;i<6;i++){
49//               if(typeof sensorsConData["event"]['channel_arrparentId_'+i]!="undefined"){
50//                 k++;
51//                 objbox['channel_arrparentId_'+i] = sensorsConData["event"]['channel_arrparentId_'+i];
52//                 objbox['channel_arrparentName_'+i] = sensorsConData["event"]['channel_arrparentName_'+i];
53//               }
54//           }
55//           if(k>0){
56//             objbox['channel_arrparentId_'+k] = sensorsConData["event"].channel_id[0];
57//             objbox['channel_arrparentName_'+k] = sensorsConData["event"].channel_name[0];
58//             sensorsConData["event"]['channel_arrparentId_'+k] = sensorsConData["event"].channel_id[0];
59//             sensorsConData["event"]['channel_arrparentName_'+k] = sensorsConData["event"].channel_name[0];
60//           }
61          
62          
63//           if(typeof sensorsConData["event"].channel_arrparentId_0=="undefined"){
64//             getCcategory(urls[2],objbox);
65//           }else{
66            
67//             sensors.quick('autoTrack',objbox);
68//           }
69//         }else if(sensorsConData.templateType=="2"){
70//           var objbox={
71//             platform:"web",
72//             channel_id:sensorsConData["event"].channel_id,
73//             channel_name:sensorsConData["event"].channel_name
74//           }
75//           var k=0;
76//           for (var i=0;i<6;i++){
77//               if(typeof sensorsConData["event"]['channel_arrparentId_'+i]!="undefined"){
78//                 k++;
79//                 objbox['channel_arrparentId_'+i] = sensorsConData["event"]['channel_arrparentId_'+i];
80//                 objbox['channel_arrparentName_'+i] = sensorsConData["event"]['channel_arrparentName_'+i];
81//               }
82//           }
83          
84//             objbox['channel_arrparentId_'+k] = sensorsConData["event"].channel_id[0];
85//             objbox['channel_arrparentName_'+k] = sensorsConData["event"].channel_name[0];
86//             sensorsConData["event"]['channel_arrparentId_'+k] = sensorsConData["event"].channel_id[0];
87//             sensorsConData["event"]['channel_arrparentName_'+k] = sensorsConData["event"].channel_name[0];
88          
89//           sensors.quick('autoTrack',objbox);
90          
91//         }else if(sensorsConData.templateType=="s"){
92//             sensors.quick('autoTrack', {
93//                  platform:"web",
94//                  channel_id:sensorsConData["event"].channel_id,
95//                  channel_name:sensorsConData["event"].channel_name
96//             });
97            
98//         }
99//     }else{
100//       sensors.quick('autoTrack',{platform:"web"});
101//     }
102//   }catch(err){
103//     sensors.quick('autoTrack',{platform:"web"});
104//     console.log(err);
105//   }
106//   //获取栏目
107//   function getCcategory(catid,objbox){
108//     var catInfo={};
109//     $.ajax({
110//         url: "//opa.haiwainet.cn/index.php?s=apis/category/getcateinfo&catid="+catid,
111//         dataType:"jsonp",
112//         jsonpCallback:"catagoryData",
113//         success: function(data){
114//           catInfo=data.result;
115//           if(typeof objbox.channel_id=="undefined"){
116//             objbox.channel_id=[catInfo.catid];
117//             objbox.channel_name=[catInfo.catname];
118//           }
119//           if(typeof catInfo.parent_category_ids!="undefined" && catInfo.parent_category_ids.length>0){
120//             for(var i in catInfo.parent_category_ids){
121//                     if(i<4){
122//                       eval("objbox['channel_arrparentId_" + i + "']='" + catInfo.parent_category_ids[i]+"'");
123//                       eval("objbox['channel_arrparentName_" + i + "']='" + catInfo.parent_category_names[i]+"'");
124//                       eval("sensorsConData['event']['channel_arrparentId_" + i + "']='" + catInfo.parent_category_ids[i]+"'");
125//                       eval("sensorsConData['event']['channel_arrparentName_" + i + "']='" + catInfo.parent_category_names[i]+"'");
126//                     }
127//                   }
128//                   if(catInfo.cat_level<6){
129//                     objbox['channel_arrparentId_'+(catInfo.cat_level-1)]= catInfo.catid ;
130//                     objbox['channel_arrparentName_'+(catInfo.cat_level-1)]=catInfo.catname;
131//                     sensorsConData['event']['channel_arrparentId_'+(catInfo.cat_level-1)]= catInfo.catid;
132//                     sensorsConData['event']['channel_arrparentName_'+(catInfo.cat_level-1)]= catInfo.catname;
133//                   }
134//           }
135//           sensors.quick('autoTrack',objbox);
136          
137//         }
138//     });
139//   }
140// })();
141
142
143(function () {
144   var ie = !!(window.attachEvent && !window.opera);
145   var wk = /webkit\/(\d+)/i.test(navigator.userAgent) && (RegExp.$1 < 525);
146   var fn = [];
147   var run = function () { for (var i = 0; i < fn.length; i++) fn[i](); };
148   var d = document;
149   d.readyhww = function (f) {
150      if (!ie && !wk && d.addEventListener)
151      return d.addEventListener('DOMContentLoaded', f, false);
152      if (fn.push(f) > 1) return;
153      if (ie)
154         (function () {
155            try { d.documentElement.doScroll('left'); run(); }
156            catch (err) { setTimeout(arguments.callee, 0); }
157         })();
158      else if (wk)
159      var t = setInterval(function () {
160         if (/^(loaded|complete)$/.test(d.readyState))
161         clearInterval(t), run();
162      }, 0);
163   };
164})();
165/** 获取Dom元素的选择器
166 *** el:元素对象
167**/
168function makeSelector(el) {
169  var tag, index, stack = [];
170
171  for (; el.parentNode; el = el.parentNode) {
172    tag = el.tagName;
173    if (tag != "HTML") {
174        index = $(el).prevAll().length + 1;
175        if (tag == "BODY"){
176          stack.unshift(tag);
177        }else{
178          stack.unshift(tag + ':nth-child(' + index + ')');                      
179        }
180    }
181  }            
182  return stack.join(' > ');
183}
184/** 神策统计
185 *** data:内容页基本属性
186 *** t:根据不同需求在方法中自行定义
187**/
188// function hwwSensors(data,t){
189//       this.templateType =data.templateType;
190//       this.other=t;
191//       (function(tem){
192//         //都有搜索和特殊元素点击
193//         hwwSensors.prototype.searchColumClick=new searchColumClick();
194//         hwwSensors.prototype.clickSpecialElement=function(obj){
195//           return clickSpecialElement.call(this, data['event'], obj);
196//         }
197//         switch(tem){
198//           case "4": 
199//                hwwSensors.prototype.viewAppNewsDetail=new viewAppNewsDetail(data['event']);
200//                hwwSensors.prototype.like=function(type){
201//                  return like.call(this, data['event'], type);
202//                }
203//                hwwSensors.prototype.shareClick=new shareClick(data['event']);
204//                hwwSensors.prototype.shareMethod=function(type){
205//                  return shareMethod.call(this, data['event'],type);
206//                }
207               
208//           break;
209//           case "2":
210//               sensors.track("ListPageVeiw",data.event);
211//           break;
212//           case "s":
213//              hwwSensors.prototype.viewAppNewsDetail=new viewAppNewsDetail(data['event']);
214//              hwwSensors.prototype.shareClick=new shareClick(data['event']);
215//              hwwSensors.prototype.shareMethod=function(type){
216//                  return shareMethod.call(this, data['event'],type);
217//                 }
218//           break;
219
220//         }
221//       }(this.templateType));
222//       //底层页浏览事件
223//       function  viewAppNewsDetail(d){
224//          sensors.track("viewAppNewsDetail",d);
225//       }
226      
227//       //搜索事件
228//       function searchColumClick(){
229//         $(".wWSS a").click(function(){
230           
231//           var newEvent={
232// 	           	key_word:"海外网"
233// 	           }
234//            sensors.track("searchColumClick");
235//            sensors.track("sendSearchRequest",newEvent);
236//         })
237//         $('.wWSS input[type="submit"]').click(function(){
238//         	var newEvent={
239// 		           	key_word:$('.wWSS input[name="q"]').val()
240// 		           }
241//            sensors.track("searchColumClick");
242//            sensors.track("sendSearchRequest",newEvent);
243//         })
244//       }
245//       //底层点赞
246//       function  like(d,type){
247//          try{
248//             var newEvent={
249//               platform: d.platform,
250//               content_id:d.content_id,
251//               content_name:d.content_name,
252//               content_category:d.content_category,
253//               content_show_type:d.content_show_type,
254//               channel_id:d.channel_id,
255//               content_tag:d.content_tag,
256//               operationType:type
257//             };
258//           sensors.track("like",newEvent);
259//           // console.log(newEvent,type);
260//           }catch(err){
261//            console.log(err);
262//           }
263//       }
264//       /** 底层分享 shareClick ,shareMethod
265//       *** d:内容页基本属性
266//       *** o:分享事件的属性
267//       **/
268//       function shareClick(d){
269//        try{
270//            var newEvent={
271//               platform: d.platform,
272//               content_id:d.content_id,
273//               content_name:d.content_name,
274//               content_category:d.content_category,
275//               content_show_type:d.content_show_type,
276//               channel_id:d.channel_id,
277//               content_tag:d.content_tag,
278//             };
279//           $(".bdsharebuttonbox").hover(function(){
280//             // console.log(newEvent);
281//             sensors.track("shareClick",newEvent); 
282//           })
283          
284//           }catch(err){
285//            console.log(err);
286//           }
287//       }
288//       function shareMethod(d,type){
289//        try{
290//            var newEvent={
291//               platform: d.platform,
292//               content_id:d.content_id,
293//               content_name:d.content_name,
294//               content_category:d.content_category,
295//               content_show_type:d.content_show_type,
296//               channel_id:d.channel_id,
297//               content_tag:d.content_tag,
298//               share_method:type
299//             };
300//           sensors.track("shareMethod",newEvent); 
301//           // console.log(newEvent);
302//           }catch(err){
303//            console.log(err);
304//           }
305//       }
306//       /** 特殊元素点击统计 clickSpecialElement
307//       *** d:内容页基本属性
308//       *** o:被点击元素对象
309//       **/
310//      function clickSpecialElement(d,o){
311//       try{
312//           var oP={
313//             $element_id:$(o).attr("id"),
314//             $element_content:$(o).attr("alt"),
315//             $element_name:$(o).attr("name"),
316//             $element_class_name:$(o).attr("class"),
317//             $element_type:$(o)[0].tagName,
318//             $element_selector:makeSelector($(o)[0])
319//           }
320//           if(oP.element_type=="A"){
321//             oP.$element_target_url=$(o).attr("href");
322//           }
323//           jQuery.extend(oP,d);
324//           // console.log(d);
325//            sensors.track("clickSpecialElement",oP); 
326//          }catch(err){
327//           console.log(err);
328//          }
329//      }
330// }
331// document.readyhww(function(){
332//     try{
333//        if(typeof sensorsConData!="undefined"){
334//           SensorsEvent=new hwwSensors(sensorsConData);
335//        }else{
336//          console.log("no sensorsConData");
337//        }
338//       }catch(err){
339//         console.log(err);
340//   }
341// });
342
343
344//百度
345var _hmt=_hmt||[];(function(){var hm=document.createElement("script");hm.src="//hm.baidu.com/hm.js?2bf4f38b490f24381d47902a0e93a50e";var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(hm,s)})();
346
347
348
349// //新cnzz
350// (function(w, d, s, q, i) {
351//    w[q] = w[q] || [];
352//    var f = d.getElementsByTagName(s)[0],j = d.createElement(s);
353//    j.async = true;
354//    j.id = 'beacon-aplus';
355//    j.src = 'https://d.alicdn.com/alilog/mlog/aplus/' + i + '.js';
356//    f.parentNode.insertBefore(j, f);
357//   })(window, document, 'script', 'aplus_queue', '203467608');
358
359//集成应用的appKey
360//     aplus_queue.push({
361//       action: 'aplus.setMetaInfo',
362//       arguments: ['appKey', '6142e079314602341a154748']
363//     });
364
365// document.write(unescape("%3Cspan id='cnzz_stat_icon_1280330837'%3E%3C/span%3E%3Cscript src='https://w.cnzz.com/c.php%3Fid%3D1280330837' type='text/javascript'%3E%3C/script%3E"));
366
367// 友盟+
368//对象中数组换成字符串
369function objArrToString(obj){
370  var keys = Object.keys(obj);
371  keys.forEach(key => {
372    if( obj[key] instanceof Array){
373      obj[key]= obj[key].join(",");
374    }
375});
376// console.log(obj);
377  return obj;
378}
379(function(){
380  var um = document.createElement("script");
381	um.src = "https://v1.cnzz.com/z.js?id=1281437142&async=1";
382	var s = document.getElementsByTagName("script")[0];
383	s.parentNode.insertBefore(um, s);
384})();
385(function(w, d, s, q, i) {
386   w[q] = w[q] || [];
387   var f = d.getElementsByTagName(s)[0],j = d.createElement(s);
388   j.async = true;
389   j.id = 'beacon-aplus';
390   j.src = 'https://d.alicdn.com/alilog/mlog/aplus/' + i + '.js';
391   f.parentNode.insertBefore(j, f);
392  })(window, document, 'script', 'aplus_queue', '203467608');
393  //集成应用的appKey
394  aplus_queue.push({
395    action: 'aplus.setMetaInfo',
396    arguments: ['appKey', '68db3cf68560e34872bcfc35']
397  });
398  
399  //是否开启调试模式 
400  aplus_queue.push({
401    action: 'aplus.setMetaInfo',
402    arguments: ['DEBUG', true]
403  });
404/** 友盟统计
405 *** data:内容页基本属性
406 *** t:根据不同需求在方法中自行定义
407**/
408function hwwUMeng(data,t){
409      this.templateType =data.templateType;
410      this.other=t;
411      (function(tem){
412        switch(tem){
413          case "4": 
414               
415          break;
416          case "2":
417              
418          break;
419          case "s":
420             
421          break;
422        }
423        
424        aplus_queue.push({
425            action: 'aplus.record',
426            arguments: ['contentDetailView', 'CLK', objArrToString(data.event)]
427          });
428      }(this.templateType));
429}
430document.readyhww(function(){
431    try{
432       if(typeof sensorsConData!="undefined"){
433          SensorsEvent=new hwwUMeng(sensorsConData);
434       }else{
435         console.log("no sensorsConData");
436       }
437      }catch(err){
438        console.log(err);
439  }
440});
441

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.