MediaWiki:Common.js: Difference between revisions

No edit summary
No edit summary
Line 49: Line 49:
// Gradually change the background color for all elements
// Gradually change the background color for all elements
function changeStylesGradually() {
function changeStylesGradually() {
   setInterval(() => {
   setInterval(() => { setRandomRotations() }, rand(1000, 10000))
  setRandomRotations();
  setInterval(() => { setBackgroundColors() }, rand(1000, 10000))
    setBackgroundColors();
  }, 5000); // Change every 5 seconds
}
}