Difference between revisions of "MediaWiki:Common.js"

From Publication Station
(Created page with "→‎Any JavaScript here will be loaded for all users on every page load.: function getRandomArbitrary(min, max) { return Math.floor(Math.random() * (max - min) + min); } document.getElementById('p-logo').classList.add('logo-' + getRandomArbitrary(1, 6))")
 
(No difference)

Latest revision as of 08:27, 23 August 2022

/* Any JavaScript here will be loaded for all users on every page load. */

function getRandomArbitrary(min, max) {
  return Math.floor(Math.random() * (max - min) + min);
}


document.getElementById('p-logo').classList.add('logo-' + getRandomArbitrary(1, 6))