MediaWiki:Gadget-fonts.js: Difference between revisions
(New Page: "// ********************************************************************** // ** ***WARNING GLOBAL GADGET FILE*** ** // ** changes to this f...") |
mNo edit summary |
||
Line 5: | Line 5: | ||
// ** ** | // ** ** | ||
// ********************************************************************** | // ********************************************************************** | ||
WebFontConfig = { | WebFontConfig = { | ||
google: { families: [ 'Droid+Sans::latin' ] } | google: { families: [ 'Droid+Sans::latin' ] } | ||
Line 17: | Line 18: | ||
var s = document.getElementsByTagName('script')[0]; | var s = document.getElementsByTagName('script')[0]; | ||
s.parentNode.insertBefore(wf, s); | s.parentNode.insertBefore(wf, s); | ||
})(); | })(); |
Latest revision as of 18:28, 11 November 2012
// ********************************************************************** // ** ***WARNING GLOBAL GADGET FILE*** ** // ** changes to this file affect many users. ** // ** please discuss on the talk page before editing ** // ** ** // ********************************************************************** WebFontConfig = { google: { families: [ 'Droid+Sans::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); })();