diff --git a/assets/background.png b/assets/background.png new file mode 100644 index 0000000..1361a89 Binary files /dev/null and b/assets/background.png differ diff --git a/launch.html b/launch.html index 412f27f..cf7c17f 100644 --- a/launch.html +++ b/launch.html @@ -440,7 +440,10 @@ * Timeout trying to start the jitsi-meet-electron client */ launchTimeout: 2000, - + /* + * set wallpaper for webpage + */ + backgroundImage: "assets/background.png", /* * Download URLs for jitsi-meet-electron client */ @@ -796,6 +799,21 @@ 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 * ============================================================ @@ -1436,6 +1454,7 @@ END:VCALENDAR`; */ applyTranslations(); + applyBackgroundImage(); initialize();