From 126c325c2c10bf1f30816ccc9cf360c34779f6da Mon Sep 17 00:00:00 2001 From: Tomas Dvorak Date: Thu, 29 May 2025 10:08:56 +0200 Subject: [PATCH] fe --- index.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 0b65578..0354238 100644 --- a/index.html +++ b/index.html @@ -56,8 +56,8 @@ const margin = style.margin || '20px'; const imagePosition = style.imagePosition || 'right'; - // Create banner content container with proper styling - const bannerStyle = ` + // Create banner container with proper styling + bannerContainer.style.cssText = ` background-color: ${backgroundColor}; color: ${textColor}; text-align: ${textAlign}; @@ -73,7 +73,7 @@ `; // Start building banner content - let content = `
`; + let content = ''; // Handle image if it exists const bannerText = banner.text || banner.Text || ''; @@ -193,6 +193,10 @@ bannerContent.innerHTML = content; bannerContainer.style.display = 'block'; + // Ensure the banner is visible + bannerContainer.style.visibility = 'visible'; + bannerContainer.style.opacity = '1'; + } catch (error) { console.error('Error loading banner:', error); }