mirror of
https://github.com/Dvorinka/PPve.git
synced 2026-06-05 04:52:58 +00:00
fe
This commit is contained in:
+7
-3
@@ -56,8 +56,8 @@
|
|||||||
const margin = style.margin || '20px';
|
const margin = style.margin || '20px';
|
||||||
const imagePosition = style.imagePosition || 'right';
|
const imagePosition = style.imagePosition || 'right';
|
||||||
|
|
||||||
// Create banner content container with proper styling
|
// Create banner container with proper styling
|
||||||
const bannerStyle = `
|
bannerContainer.style.cssText = `
|
||||||
background-color: ${backgroundColor};
|
background-color: ${backgroundColor};
|
||||||
color: ${textColor};
|
color: ${textColor};
|
||||||
text-align: ${textAlign};
|
text-align: ${textAlign};
|
||||||
@@ -73,7 +73,7 @@
|
|||||||
`;
|
`;
|
||||||
|
|
||||||
// Start building banner content
|
// Start building banner content
|
||||||
let content = `<div style="${bannerStyle}">`;
|
let content = '';
|
||||||
|
|
||||||
// Handle image if it exists
|
// Handle image if it exists
|
||||||
const bannerText = banner.text || banner.Text || '';
|
const bannerText = banner.text || banner.Text || '';
|
||||||
@@ -193,6 +193,10 @@
|
|||||||
bannerContent.innerHTML = content;
|
bannerContent.innerHTML = content;
|
||||||
bannerContainer.style.display = 'block';
|
bannerContainer.style.display = 'block';
|
||||||
|
|
||||||
|
// Ensure the banner is visible
|
||||||
|
bannerContainer.style.visibility = 'visible';
|
||||||
|
bannerContainer.style.opacity = '1';
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error loading banner:', error);
|
console.error('Error loading banner:', error);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user