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
(add Joanna dark)
(fix)
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', '/w/images/1/17/Joannadarkalpha.png'];
     var bgImages = ['/w/images/b/b1/Kameoalpha.png', '/w/images/c/c3/Fergyalpha.png', '/w/images/2/22/Banjoalpha.png', '/w/images/9/9f/JoannaDarkalpha.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:49, 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/9/9f/JoannaDarkalpha.png'];
    $('div#content').css('background-image', 'url(' + bgImages[Math.floor(Math.random() * bgImages.length)] + ')');
});