OctoSpaccHub/assets/js/RandomGIF.js

8 lines
214 B
JavaScript

function RandomGIF() {
gifid = Math.floor((Math.random() * 11)/2);
gifurl = top.glob + gifid + ".gif";
gifcss = "url(" + gifurl + ")";
document.body.style.backgroundImage = gifcss;
}
window.onload = RandomGIF;