1(function() { 2 3 // default case 4 5 if (typeof fbShare == 'undefined') { 6 fbShare = {}; 7 } 8 9 var getUrlVars = function() 10 { 11 var vars = [], hash; 12 var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); 13 for(var i = 0; i < hashes.length; i++) 14 { 15 hash = hashes[i].split('='); 16 vars.push(hash[0]); 17 vars[hash[0]] = hash[1]; 18 } 19 return vars; 20 } 21 22 var src = 'http://widgets.fbshare.me/files/fbshare.php'; 23 src += '?size='; 24 switch(fbShare.size) { 25 case 'small': 26 src += 'small'; 27 width = 90; 28 height = 18; 29 break 30 case 'large': 31 default: 32 src += 'large'; 33 width = 53; 34 height = 60; 35 break; 36 } 37 src += "&url="; 38 if ( fbShare.url ) { 39 src += encodeURI(fbShare.url); 40 var pageParams = getUrlVars(); 41 if ( pageParams['awesm'] ) { 42 src += '&awesm_parent=' + pageParams['awesm']; 43 } 44 } else { 45 src += encodeURI(location.href); 46 } 47 src += "&title="; 48 if ( fbShare.title ) { 49 src += fbShare.title; 50 } else { 51 src += document.title; 52 } 53 if ( fbShare.google_analytics ) { 54 src += "&google_analytics=" + fbShare.google_analytics; 55 } 56 if ( fbShare.awesm_api_key ){ 57 src += "&awesm_api_key=" + fbShare.awesm_api_key; 58 }
59 document.write('<iframe src="' + src + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no"></iframe>'); 60})();
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.