MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
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/' width | maplocation.innerHTML = "<iframe src='https://map.emfcamp.org/' style='width: 100%; height: 400px'></iframe>"; | ||
} | } |
Revision as of 08:31, 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: 400px'></iframe>"; }