1jQuery(function ($){ 2 var insertAndExecute = function (node, text) { 3 node.innerHTML = text; 4 var scripts = Array.prototype.slice.call(node.getElementsByTagName("script")); 5 for (var i = 0; i < scripts.length; i++) { 6 if (scripts[i].src !== "") { 7 var tag = document.createElement("script"); 8 tag.src = scripts[i].src; 9 document.getElementsByTagName("head")[0].appendChild(tag); 10 } 11 else { 12 eval(scripts[i].innerHTML); 13 } 14 } 15 }; 16 17 var loadJS = function (src) { 18 var script = document.createElement("script"); 19 script.async = true; 20 script.src = src; 21 document.body.appendChild(script); 22 }; 23 24 25 /*--- Started to load YPA Counter ---*/ 26 (function () { 27 var cb = function (ret) { 28 $(".render-ad-area").each(function (){ 29 insertAndExecute(this, ret); 30 }); 31 }; 32 33 var clickUrl = $("#hotsearch-link").attr("data-src"); 34 35 var cbName = "cb" + (+new Date); 36 window[cbName] = cb; 37 var url = (counterUrl!=='')?(counterUrl+'/api/ads'):ajaxurl; 38 loadJS( 39 url + 40 "?action=render_ad" + 41 "&ref=" + encodeURIComponent(document.referrer) + 42 "&url=" + encodeURIComponent(location.href) + 43 "&cb=" + cbName + 44 "&clickUrl=" + encodeURIComponent(clickUrl)); 45 })(); 46 /*--- Ended to load YPA Counter ---*/ 47 48}); 49 50
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.