MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */ function fBox { $('#fbox').append(''); } $(fBox);

(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0];  if (d.getElementById(id)) return;  js = d.createElement(s); js.id = id;  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=171326882922791";  fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));

window.fbAsyncInit = function { // init the FB JS SDK FB.init({     appId      : 'YOUR_APP_ID',                        // App ID from the app dashboard      status     : true,                                 // Check Facebook Login status      xfbml      : true                                  // Look for social plugins on the page    });

// Additional initialization code such as adding Event Listeners goes here };

// Load the SDK asynchronously (function{    // If we've already installed the SDK, we're done     if (document.getElementById('facebook-jssdk')) {return;}

// Get the first script element, which we'll use to find the parent node var firstScriptElement = document.getElementsByTagName('script')[0];

// Create a new script element and set its id    var facebookJS = document.createElement('script'); facebookJS.id = 'facebook-jssdk';

// Set the new script's source to the source of the Facebook JS SDK facebookJS.src = '//connect.facebook.net/en_US/all.js';

// Insert the Facebook JS SDK into the DOM firstScriptElement.parentNode.insertBefore(facebookJS, firstScriptElement); });