mirror of
https://github.com/Dvorinka/PPve.git
synced 2026-06-04 12:32:59 +00:00
test
This commit is contained in:
+1
-21
@@ -227,27 +227,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add text if it exists
|
// Text is already added in the previous conditions
|
||||||
if (bannerText) {
|
|
||||||
const textStyle = `
|
|
||||||
margin: 0;
|
|
||||||
padding: 10px;
|
|
||||||
line-height: 1.6;
|
|
||||||
color: ${textColor};
|
|
||||||
text-align: ${textAlign};
|
|
||||||
font-size: ${fontSize};
|
|
||||||
`;
|
|
||||||
|
|
||||||
// Wrap text in link if URL is provided
|
|
||||||
const textElement = bannerLink
|
|
||||||
? `<a href="${bannerLink}" target="_blank" style="color: inherit; text-decoration: none;">${bannerText}</a>`
|
|
||||||
: bannerText;
|
|
||||||
|
|
||||||
content += `
|
|
||||||
<div class="banner-text" style="${textStyle}">
|
|
||||||
${textElement}
|
|
||||||
</div>`;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Set the content and make banner visible
|
// Set the content and make banner visible
|
||||||
bannerContent.innerHTML = content;
|
bannerContent.innerHTML = content;
|
||||||
|
|||||||
Reference in New Issue
Block a user