Difference between revisions of "MediaWiki:Common.js"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
if ( mw.config.get( 'wgPageName' ) === 'User:Stitch/Test' ) { | if ( mw.config.get( 'wgPageName' ) === 'User:Stitch/Test' ) { | ||
maplocation = document.getElementById('map'); | maplocation = document.getElementById('map'); | ||
− | maplocation.innerHTML = "<iframe src='https://map.emfcamp.org/' style='width: 100%; height: | + | maplocation.innerHTML = "<iframe src='https://map.emfcamp.org/' style='width: 100%; height: 500px'></iframe>"; |
} | } |
Revision as of 08:32, 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 = "<iframe src='https://map.emfcamp.org/' style='width: 100%; height: 500px'></iframe>"; }