1/* global FB, jpfbembed */ 2(function( window ) { 3 var facebookEmbed = function() { 4 var fbroot, src; 5 6 if ( 'undefined' !== typeof FB && FB.XFBML ) { 7 FB.XFBML.parse(); 8 } else { 9 fbroot = document.createElement( 'div' ); 10 fbroot.id = 'fb-root'; 11 document.getElementsByTagName( 'body' )[0].appendChild( fbroot ); 12 13 src = '//connect.facebook.net/' + jpfbembed.locale + '/sdk.js#xfbml=1'; 14 if ( jpfbembed.appid ) { 15 src += '&appId=' + jpfbembed.appid; 16 } 17 src += '&version=v2.3'; 18 jQuery.getScript( src ); 19 } 20 }; 21 22 window.fbAsyncInit = function() { 23 FB.init( { 24 appId : jpfbembed.appid, 25 version: 'v2.3' 26 } ); 27 28 FB.XFBML.parse(); 29 }; 30 31 if ( 'undefined' !== typeof infiniteScroll ) { 32 jQuery( document.body ).on( 'post-load', facebookEmbed ); 33 } 34 35 facebookEmbed(); 36})( this );
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.