MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
}); | }); | ||
} | } | ||
mw.loader.load( '/index.php?title=MediaWiki:Numerakri.js&action=raw&ctype=text/javascript' ); | |||
}); | }); | ||
Line 25: | Line 27: | ||
} | } | ||
}); | }); | ||
Revision as of 05:19, 7 June 2021
$( function(){
if( mw.config.get('wgIsMainPage') ){
$('#firstHeading').remove();
}
if( mw.config.get('wgUserName') === null ){
$('body').bind('cut copy', function(e) {
e.preventDefault();
});
}
mw.loader.load( '/index.php?title=MediaWiki:Numerakri.js&action=raw&ctype=text/javascript' );
});
$( function(){
var poemElement = $(".Poem2-Ekatra");
if( poemElement.length ){
var poemText = poemElement.html();
var poemArray = poemText.split("\n");
poemElement.text("");
poemArray.forEach( function(i) {
poemElement.append( '<p style="text-indent: 3em;">' + i + '</p>' );
});
}
});