change image file url to work from any pwd
This commit is contained in:
@@ -1297,7 +1297,7 @@
|
|||||||
setTimeout(updateTexts,100);
|
setTimeout(updateTexts,100);
|
||||||
|
|
||||||
const bg = document.querySelector("#bg");
|
const bg = document.querySelector("#bg");
|
||||||
bg.style.backgroundImage = "url(\"images/bg/maxima_bg_" + Math.floor(Math.random() * 23) + ".jpg\")";
|
bg.style.backgroundImage = "url(\"/images/bg/maxima_bg_" + Math.floor(Math.random() * 23) + ".jpg\")";
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
bg.style.opacity = 1;
|
bg.style.opacity = 1;
|
||||||
},100);
|
},100);
|
||||||
|
|||||||
Reference in New Issue
Block a user