feat: update bg
This commit is contained in:
parent
9c581ce346
commit
d5f6c89555
BIN
img/bg/3.png
Normal file
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
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
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}')`;
|
||||
|
Loading…
x
Reference in New Issue
Block a user