Difference between revisions of "MediaWiki:Common.js"

From XMission Wiki
Jump to: navigation, search
(Created page with "Any JavaScript here will be loaded for all users on every page load.: WebFontConfig = { google: { families: [ 'Arvo:400,700:latin' ] } }; (function() { var...")
 
(No difference)

Latest revision as of 15:09, 31 January 2014

/* Any JavaScript here will be loaded for all users on every page load. */

  WebFontConfig = {
    google: { families: [ 'Arvo:400,700:latin' ] }
  };
  (function() {
    var wf = document.createElement('script');
    wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
      '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
    wf.type = 'text/javascript';
    wf.async = 'true';
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(wf, s);
  })();