add option for a background image, add default background
This commit is contained in:
1 parent
eb1e62c511
commit
f3f47aee4d
2 files changed
+20
-1
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 1.1 MiB |
+20
-1
@@ -440,7 +440,10 @@
|
|||||||
* Timeout trying to start the jitsi-meet-electron client
|
* Timeout trying to start the jitsi-meet-electron client
|
||||||
*/
|
*/
|
||||||
launchTimeout: 2000,
|
launchTimeout: 2000,
|
||||||
|
/*
|
||||||
|
* set wallpaper for webpage
|
||||||
|
*/
|
||||||
|
backgroundImage: "assets/background.png",
|
||||||
/*
|
/*
|
||||||
* Download URLs for jitsi-meet-electron client
|
* Download URLs for jitsi-meet-electron client
|
||||||
*/
|
*/
|
||||||
@@ -796,6 +799,21 @@
|
|||||||
return typeof value === "string" ? value : null;
|
return typeof value === "string" ? value : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ============================================================
|
||||||
|
* BACKGROUND IMAGE
|
||||||
|
* ============================================================
|
||||||
|
*/
|
||||||
|
|
||||||
|
function applyBackgroundImage() {
|
||||||
|
if (!CONFIG.backgroundImage) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
document.body.style.backgroundImage = `url("${CONFIG.backgroundImage}")`;
|
||||||
|
document.body.style.backgroundSize = "cover";
|
||||||
|
document.body.style.backgroundPosition = "center";
|
||||||
|
}
|
||||||
|
|
||||||
/* ============================================================
|
/* ============================================================
|
||||||
* DOM elements
|
* DOM elements
|
||||||
* ============================================================
|
* ============================================================
|
||||||
@@ -1436,6 +1454,7 @@ END:VCALENDAR`;
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
applyTranslations();
|
applyTranslations();
|
||||||
|
applyBackgroundImage();
|
||||||
initialize();
|
initialize();
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Reference in new issue
Block a user