Jump to content

User:Amire80/common.js: Difference between revisions

From Wikisource
Content deleted Content added
Amire80 (talk | contribs)
prop
Amire80 (talk | contribs)
$
 
(5 intermediate revisions by the same user not shown)
Line 6: Line 6:
setTimeout( function () {
setTimeout( function () {
var $contentText = $( '#mw-content-text' );
var $contentText = $( '#mw-content-text' );

$contentText.prop( 'lang', 'or' );
$contentText.prop( 'lang', 'or' );

if ( $.isFunction( $.webfonts ) ) {
if ( $.webfonts &&
mw.webfonts &&
mw.webfonts.preferences.isEnabled()
) {
mw.log( 'applying webfonts' );
$contentText.webfonts();
$contentText.webfonts();
}
}

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' );
}