feat: update bg

This commit is contained in:
Zichao Lin 2024-08-23 13:15:10 +08:00
parent 9c581ce346
commit d5f6c89555
Signed by: earthjasonlin
GPG Key ID: 406D9913DE2E42FB
4 changed files with 1 additions and 1 deletions

BIN
img/bg/3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 MiB

BIN
img/bg/4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 MiB

BIN
img/bg/5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 MiB

@ -9,7 +9,7 @@ document.addEventListener("DOMContentLoaded", () => {
});
function setRandomBackground() {
const images = ['1.jpg', '2.jpg'];
const images = ['1.jpg', '2.jpg', '3.png', '4.png', '5.png'];
const randomIndex = Math.floor(Math.random() * images.length);
const selectedImage = images[randomIndex];
document.body.style.backgroundImage = `url('img/bg/${selectedImage}')`;