PageSourceSearch

https://www.goodmorningtrieste.it/wp-content/plugins/jetpack/_inc/facebook-embed.js

js goodmorningtrieste.it collected 2026-10-02 14:21:56 UTC 1,394 bytes, 57 lines download raw bytes

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	// Re-render Facebook XFBML when partials are re-rendered in the Customizer.
36	jQuery( function() {
37		var hasSelectiveRefresh = (
38			'undefined' !== typeof wp &&
39			wp.customize &&
40			wp.customize.selectiveRefresh &&
41			wp.customize.widgetsPreview &&
42			wp.customize.widgetsPreview.WidgetPartial
43		);
44		if ( ! hasSelectiveRefresh ) {
45			return;
46		}
47
48		// Render Facebook widget in rendered partial.
49		wp.customize.selectiveRefresh.bind( 'partial-content-rendered', function( placement ) {
50			if ( placement.container ) {
51				FB.XFBML.parse( placement.container[0] );
52			}
53		} );
54	} );
55
56	facebookEmbed();
57})( 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.