1 2function TotleAdvertiseViewNum() { 3 var adverRegex = /\/AdvertisInfo_PageView.aspx\?ID=(\d+)/g; 4 var matched = document.documentElement.outerHTML.match(adverRegex); 5 var advertiseIDs = ""; 6 if (matched!=null && matched.length > 0) { 7 var AllHtmltext = document.documentElement.outerHTML; 8 if (AllHtmltext.indexOf("/ajax/Industry.Vivian") == -1) { 9 var hm = document.createElement("script"); 10 hm.src = "/ajax/common.ashx"; 11 document.head.appendChild(hm); 12 13 var hm2 = document.createElement("script"); 14 hm2.src = "/ajax/Industry.Vivian,Industry.ashx"; 15 document.head.appendChild(hm2); 16 } 17 for (var i = 0; i < matched.length; i++) { 18 var regerttt = new RegExp("\\d+", "gmi"); 19 var thisadvsstr = matched[i]; 20 var replaceadvstr = thisadvsstr.match(regerttt)[0]; 21 advertiseIDs = advertiseIDs + replaceadvstr + ","; 22 } 23 if (advertiseIDs.length > 0) { 24 advertiseIDs = advertiseIDs.substr(0, advertiseIDs.length - 1); 25 var thisurl = window.location.href; 26 Vivian.GetAdvertiseViewNum(advertiseIDs, thisurl, function () { });
27 } 28 } 29} 30 31TotleAdvertiseViewNum();
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.