User:Amire80/common.js: Difference between revisions
Appearance
Content deleted Content added
up |
$ |
||
| (7 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
var odiaAutonym = 'ଓଡ଼ିଆ'; |
var odiaAutonym = 'ଓଡ଼ିଆ'; |
||
if ( $.inArray( odiaAutonym, mw.config.get( 'wgCategories' ) ) ) { |
if ( $.inArray( odiaAutonym, mw.config.get( 'wgCategories' ) ) > -1 ) { |
||
mw.log( 'yo, odia' ); |
mw.log( 'yo, odia' ); |
||
setTimeout( function () { |
|||
var $contentText = $( '#mw-content-text' ); |
|||
$contentText.prop( 'lang', 'or' ); |
|||
if ( $.webfonts && |
|||
mw.webfonts && |
|||
mw.webfonts.preferences.isEnabled() |
|||
) { |
|||
mw.log( 'applying webfonts' ); |
|||
$contentText.webfonts(); |
|||
} |
|||
}, 2000 ); |
|||
} else { |
} else { |
||
mw.log( 'not odia' ); |
mw.log( 'not odia' ); |
||
Latest revision as of 05:58, 25 September 2014
var odiaAutonym = 'ଓଡ଼ିଆ';
if ( $.inArray( odiaAutonym, mw.config.get( 'wgCategories' ) ) > -1 ) {
mw.log( 'yo, odia' );
setTimeout( function () {
var $contentText = $( '#mw-content-text' );
$contentText.prop( 'lang', 'or' );
if ( $.webfonts &&
mw.webfonts &&
mw.webfonts.preferences.isEnabled()
) {
mw.log( 'applying webfonts' );
$contentText.webfonts();
}
}, 2000 );
} else {
mw.log( 'not odia' );
}