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

Difference between revisions of "MediaWiki:Common.js"

From Rare Wiki
Jump to navigationJump to search
(added banjo and kazooie)
(adding battletoads)
Line 1: Line 1:
$(function() {
$(function() {
     var bgImages = ['/w/images/b/b1/Kameoalpha.png', '/w/images/c/c3/Fergyalpha.png', '/w/images/2/22/Banjoalpha.png'];
     var bgImages = ['/w/images/b/b1/Kameoalpha.png', '/w/images/c/c3/Fergyalpha.png', '/w/images/2/22/Banjoalpha.png', '/w/images/f/f8/Battletoadsalpha.png'];
     $('div#content').css('background-image', 'url(' + bgImages[Math.floor(Math.random() * bgImages.length)] + ')');
     $('div#content').css('background-image', 'url(' + bgImages[Math.floor(Math.random() * bgImages.length)] + ')');
});
});

Revision as of 04:34, September 28, 2021

$(function() {
    var bgImages = ['/w/images/b/b1/Kameoalpha.png', '/w/images/c/c3/Fergyalpha.png', '/w/images/2/22/Banjoalpha.png', '/w/images/f/f8/Battletoadsalpha.png'];
    $('div#content').css('background-image', 'url(' + bgImages[Math.floor(Math.random() * bgImages.length)] + ')');
});