1(function ($) { 2 /*jslint undef: false, browser: true, devel: false, eqeqeq: false, bitwise: false, white: false, plusplus: false, regexp: false, nomen: false */ 3 /*global jQuery,setTimeout,projekktor,location,setInterval,YT,clearInterval,pixelentity */ 4 5 var loaded = false; 6 7 function loadApi() { 8 loaded = true; 9 $("body").append('<div id="fb-root"/>'); 10 // facebook load script 11 var js, fjs = document.getElementsByTagName("script")[0]; 12 js = document.createElement("script"); 13 js.async = true; 14 js.src = "//assets.pinterest.com/js/pinit.js"; 15 fjs.parentNode.insertBefore(js, fjs); 16 } 17 18 function check(target,controller) { 19 var t = target.find("button.share.pinterest"); 20 if (t.length > 0) { 21 var url = encodeURIComponent(location.href); 22 t.replaceWith('<div class="shareButton"><a href="http://pinterest.com/pin/create/button/?url='+url+'" class="pin-it-button" count-layout="horizontal"><img border="0" src="//assets.pinterest.com/images/PinExt.png" title="Pin It" /></a></div>'); 23 if (!loaded) { 24 loadApi(); 25 } 26 return true; 27 } 28 return false; 29 } 30 31 $.pixelentity.widgets.add(check); 32}(jQuery));
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.