Add custom overlay image upload feature with style options

This commit is contained in:
CodeDevMLH
2026-03-09 03:40:13 +01:00
parent 8ff4f081f3
commit a57f3db009
5 changed files with 286 additions and 8 deletions

View File

@@ -61,6 +61,7 @@ const CONFIG = {
enableCustomOverlay: false,
customOverlayText: "",
customOverlayImageUrl: "",
customOverlayStyle: "Shadowed",
enableCustomMediaIds: true,
enableSeasonalContent: false,
customMediaIds: "",
@@ -3851,7 +3852,7 @@ const slidesInit = async () => {
overlayContainer.appendChild(img);
} else if (activeOverlayText) {
const p = document.createElement("p");
p.className = "custom-overlay-text";
p.className = `custom-overlay-text custom-overlay-style-${CONFIG.customOverlayStyle || 'Shadowed'}`;
p.textContent = activeOverlayText;
overlayContainer.appendChild(p);
}