Difference between revisions of "MediaWiki:Vector.js"

From Argonath RPG Wiki
Jump to navigation Jump to search
(trying out custom fonts)
 
(No difference)

Latest revision as of 13:07, 6 August 2014

/* Any JavaScript here will be loaded for users using the Vector skin */

WebFontConfig = {
  google: { families: [ 'Noto+Sans:400,400italic,700,700italic:latin,latin-ext' ] }
};
(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);
})();