Difference between revisions of "MediaWiki:Common.js"

From The Wiki of Illuna
(Created page with "→‎Any JavaScript here will be loaded for all users on every page load.: var shiftWindow = function() { scrollBy(0, -50) }; if (location.hash) shiftWindow(); window.addEvent...")
 
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. */
var shiftWindow = function() { scrollBy(0, -50) };
var shiftWindow = function() { scrollBy(0, -70) };
if (location.hash) shiftWindow();
if (location.hash) shiftWindow();
window.addEventListener("hashchange", shiftWindow);
window.addEventListener("hashchange", shiftWindow);

Revision as of 15:12, 22 May 2020

/* Any JavaScript here will be loaded for all users on every page load. */
var shiftWindow = function() { scrollBy(0, -70) };
if (location.hash) shiftWindow();
window.addEventListener("hashchange", shiftWindow);