MediaWiki:Gadget-NamespaceNotice.js: Difference between revisions
Content deleted Content added
counting is hard |
let's try this |
||
Line 1: | Line 1: | ||
/* Show a notice inside <div id="contentSub"></div> on pages in the Talk namespace */ |
/* Show a notice inside <div id="contentSub"></div> on pages in the Talk namespace */ |
||
if ( mw.config.get( 'wgNamespaceNumber' == 1) ) { |
if ( mw.config.get( 'wgNamespaceNumber' == 1) ) { |
||
jQuery('#contentSub').html('<div>hello</div>'); |
jQuery(function(){ |
||
jQuery('#contentSub').html('<div>hello</div>'); |
|||
}; |
|||
} |
} |