Difference between revisions of "MediaWiki:Common.js"
From Geohashing
imported>Joannac |
imported>Joannac |
||
Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for all users on every page load. */ | /* Any JavaScript here will be loaded for all users on every page load. */ | ||
if(!(wgAction == 'edit' || wgAction == 'submit' || mgAction == 'create')) { | if(!(wgAction == 'edit' || wgAction == 'submit' || mgAction == 'create')) { | ||
+ | document.write("Scrolling time!"); | ||
window.scrollTo(0,document.body.scrollHeight); | window.scrollTo(0,document.body.scrollHeight); | ||
} | } |
Revision as of 21:17, 31 March 2012
/* Any JavaScript here will be loaded for all users on every page load. */ if(!(wgAction == 'edit' || wgAction == 'submit' || mgAction == 'create')) { document.write("Scrolling time!"); window.scrollTo(0,document.body.scrollHeight); }