MediaWiki:Common.js: Difference between revisions

From Electromagnetic Field
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/' style='width: 100%; height: 400px'></iframe>";
     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>";
}