There are currently 342 stubs. You can help us by expanding these articles!

MediaWiki:Common.js

From Rare Wiki
Jump to navigationJump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
$(function() {
    var bgImages = ['/w/images/b/b1/Kameoalpha.png', '/w/images/c/c3/Fergyalpha.png', '/w/images/2/22/Banjoalpha.png', '/w/images/1/10/Jdalpha.png'];
    $('div#content').css('background-image', 'url(' + bgImages[Math.floor(Math.random() * bgImages.length)] + ')');
});