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 = "hello";
     maplocation.innerHTML = "<iframe src='https://map.emfcamp.org/' width="100%" height="300"></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/' width="100%" height="300"></iframe>";
}