OctoSpaccHub/Public/Assets/JS/RandomGIF.js
2021-09-22 22:58:20 +02:00

8 lines
197 B
JavaScript

function RandomGIF() {
GifID = Math.floor((Math.random() * 25)/2);
GifURL = top.glob + GifID + ".gif";
document.body.style.backgroundImage = "url(" + GifURL + ")";
}
window.onload = RandomGIF;