change image file url to work from any pwd

This commit is contained in:
2025-05-03 08:32:45 +01:00
parent effffc56a5
commit 82c4dc10ee

View File

@@ -1297,7 +1297,7 @@
setTimeout(updateTexts,100);
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(() => {
bg.style.opacity = 1;
},100);