Skip to content

Commit 0a70558

Browse files
committed
Edit A Icon Page And A New Line To Get A Background Image
1 parent 232c813 commit 0a70558

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,9 @@ function randomizeImg() {
199199
clear = setInterval(() => {
200200
let randomNum = Math.floor(Math.random() * imgsArray.length);
201201
landingPage.style.backgroundImage =
202-
'url("images/' + imgsArray[randomNum] + '")';
202+
'url("../images/' + imgsArray[randomNum] + '")';
203203
localStorage.setItem("background", imgsArray[randomNum]);
204-
}, 1000);
204+
}, 10000);
205205
}
206206
}
207207
randomizeImg();

0 commit comments

Comments
 (0)