1var wss= window.location.href; 2var gss=""; 3var tcid = "EXT_WBTweetableSocialShare_EXT"; 4var encodedURL = encodeURIComponent(wss+"?cid="+tcid); 5var url = "/wbg/aem/service/shortenurl"; 6var cid = "EXT_WBSocialShare_EXT"; 7 8 9if(wss.indexOf("http://beta") > -1) 10{ 11 cid = "SHR_SiteShare_EXT"; 12 tcid = "SHR_SiteTweetable_EXT"; 13 14} 15 16 $( ".tweetable" ).click(function() { 17 $.ajax({ 18 url : url, 19 type : "get", 20 data : {'longURL': encodedURL}, 21 async: false, 22 success : function(data) { 23 gss = data; 24 25 }, 26 error: function() { 27 connectionError(); 28 } 29 }); 30 31 var twturl = $('.twdsrt').attr('data-url'); 32 var dt = $(this).attr('data-text'); 33 var chnl = $(this).attr('data-tweet'); 34 var urlsplit = chnl.split(",tweetHash="); 35 var shareurl = 'https://twitter.com/intent/tweet?text=' + encodeURIComponent(dt) + 36 '&url='+encodeURIComponent(gss)+"&"+'via='+encodeURIComponent(urlsplit[0])+"&original_referer="+encodeURIComponent(window.location.href)+"&source=tweetbutton"; 37 if(urlsplit[1]) 38 shareurl = shareurl+'&hashtags='+encodeURIComponent(urlsplit[1]); 39 openPopUp(shareurl); 40 return false; 41 }); 42 43function openPopUp(popUrl){ 44 45 window.open(popUrl, 'fbShareWindow', 'height=450, width=550, top=' + ($(window).height() / 2 - 275) + ', left=' + ($(window).width() / 2 - 225) + ', toolbar=0, location=0, menubar=0, directories=0, scrollbars=0'); 46 return false; 47 48} 49 50$(document.body).append('<script src="https://apis.google.com/js/client.js?onload=init"></script>');
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.