MediaWiki:Common.js: Difference between revisions

From BurnSim Wiki
Jump to navigation Jump to search
(Created page with "→‎Any JavaScript here will be loaded for all users on every page load.: $(document).ready( function() { let tree = $('#wikitext-sidebar'); $('#p-logo').after( tree.html() ); tree.remove(); });")
 
No edit summary
 
(26 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Any JavaScript here will be loaded for all users on every page load. */
//if (mw.config.get('wgNamespaceNumber')==6 && mw.config.get('wgAction')=='view') {
$(document).ready( function() {
mw.loader.load('//imagemapedit.toolforge.org/ime.js');
  let tree = $('#wikitext-sidebar');
// alert('loaded');
  $('#p-logo').after( tree.html() );
//} else {
  tree.remove();
//alert('failed to load');
});
// alert(mw.config.get('wgNamespaceNumber'));
// alert(mw.config.get('wgAction')=='view')
//}
 
//$(document).ready(  
// function() {
//let tree = $('#wikitext-sidebar');
//$('#p-logo').after( tree.html() );
//tree.remove();
// }
//);
 
//alert('test');

Latest revision as of 14:39, 16 November 2022

//if (mw.config.get('wgNamespaceNumber')==6 && mw.config.get('wgAction')=='view') {
	mw.loader.load('//imagemapedit.toolforge.org/ime.js');
//	alert('loaded');
//} else {
	//alert('failed to load');
//	alert(mw.config.get('wgNamespaceNumber'));
//	alert(mw.config.get('wgAction')=='view')
//}

//$(document).ready( 
//	function() {
		//let tree = $('#wikitext-sidebar');
		//$('#p-logo').after( tree.html() );
		//tree.remove();
//	}
//);

//alert('test');