mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
docs - fix wrong banner order, glitch in banner size and edit default banner texts
This commit is contained in:
parent
956aff37da
commit
9d35aed6a7
1 changed files with 6 additions and 7 deletions
|
|
@ -7,8 +7,7 @@
|
|||
</a>
|
||||
{% endblock %}
|
||||
{% block announce %}
|
||||
📢 Looking for technical support, tailored
|
||||
consulting or custom development for BunkerWeb ? Visit the
|
||||
📢 Looking for BunkerWeb PRO version, technical support or tailored services ? Visit the
|
||||
<a href="https://panel.bunkerweb.io/?utm_campaign=self&utm_source=doc"
|
||||
style="color: #3f6ec6;
|
||||
text-decoration: underline">BunkerWeb Panel</a>
|
||||
|
|
@ -52,9 +51,9 @@
|
|||
<script defer>
|
||||
window.addEventListener('DOMContentLoaded', () => {
|
||||
const bannerEl = document.querySelector('aside.md-banner');
|
||||
let defaultContent = [{ "content" : 'Need premium support ? <a style="text-decoration:underline; color : white;" href="https://panel.bunkerweb.io/?utm_campaign=self&utm_source=doc">Check BunkerWeb Panel</a>'},
|
||||
{ "content" : 'Try BunkerWeb on our <a style="text-decoration:underline; color : white;" href="https://demo.bunkerweb.io/link/?utm_campaign=self&utm_source=doc">demo web app !</a>'},
|
||||
{ "content" : 'All information about BunkerWeb on our <a style="text-decoration:underline; color : white;" href="https://www.bunkerweb.io/?utm_campaign=self&utm_source=doc">website !</a>'}
|
||||
let defaultContent = [{ "content" : '<p>Get the most of BunkerWeb by upgrading to the PRO version. More info and free trial <a style="text-decoration:underline; color : white;" href="https://panel.bunkerweb.io/?utm_campaign=self&utm_source=doc#pro">here</a>.</p>'},
|
||||
{ "content" : '<p>Need premium support or tailored consulting around BunkerWeb ? Check out our <a style="text-decoration:underline; color : white;" href="https://panel.bunkerweb.io/?utm_campaign=self&utm_source=doc#services">professional services</a>.</p>'},
|
||||
{ "content" : '<p>Be part of the Bunker community by joining the <a style="text-decoration:underline; color: white;" href="https://discord.bunkerweb.io">Discord chat</a> and following us on <a style="text-decoration:underline; color: white;" href="https://www.linkedin.com/company/bunkerity/">LinkedIn</a>.</p>'}
|
||||
]
|
||||
|
||||
function setBannerStyle() {
|
||||
|
|
@ -67,7 +66,7 @@
|
|||
function setDefault() {
|
||||
const bannerItem = bannerEl.querySelector('.md-banner__inner');
|
||||
const clone = bannerItem.cloneNode(true);
|
||||
clone.innerHTML = defaultContent[defaultContent.length - 1]["content"];
|
||||
clone.innerHTML = defaultContent[0]["content"];
|
||||
bannerEl.replaceChild(clone, bannerItem);
|
||||
}
|
||||
|
||||
|
|
@ -77,7 +76,7 @@
|
|||
|
||||
setInterval(() => {
|
||||
// Update or reset index
|
||||
if(i + 1 === defaultContent.length - 1) {
|
||||
if(i + 1 === defaultContent.length) {
|
||||
i = 0;
|
||||
} else {
|
||||
i++;
|
||||
|
|
|
|||
Loading…
Reference in a new issue