Difference between revisions of "MediaWiki:Common.js"

From Electromagnetic Field
Jump to navigation Jump to search
(Created page with "→‎Any JavaScript here will be loaded for all users on every page load.: if ( mw.config.get( 'wgPageName' ) === 'User:Stitch/Test' ) { alert('does this work?'); }")
 
Line 2: Line 2:
  
 
if ( mw.config.get( 'wgPageName' ) === 'User:Stitch/Test' ) {
 
if ( mw.config.get( 'wgPageName' ) === 'User:Stitch/Test' ) {
     alert('does this work?');
+
     maplocation = document.getElementById('map');
 +
    maplocation.innerHTML = "hello";
 
}
 
}

Revision as of 08:30, 13 August 2018

/* Any JavaScript here will be loaded for all users on every page load. */

if ( mw.config.get( 'wgPageName' ) === 'User:Stitch/Test' ) {
    maplocation = document.getElementById('map');
    maplocation.innerHTML = "hello";
}