User:Greenitthe/timeless.js: Difference between revisions
From IdleOn MMO Wiki
imported>Greenitthe (Created page with "var images = ['https://static.miraheze.org/idleonwiki/2/26/Background.png', 'https://static.miraheze.org/idleonwiki/0/07/Desert_bg1.png']; Document.getElementById('mw-content-...") |
imported>Greenitthe No edit summary |
||
Line 1: | Line 1: | ||
var images = ['https://static.miraheze.org/idleonwiki/2/26/Background.png', 'https://static.miraheze.org/idleonwiki/0/07/Desert_bg1.png']; | var images = ['https://static.miraheze.org/idleonwiki/2/26/Background.png', 'https://static.miraheze.org/idleonwiki/0/07/Desert_bg1.png']; | ||
document.getElementById('mw-content-container').css({'background-image': 'url(' + images[Math.floor(Math.random() * images.length)] + ')'}); |