How do you run custom code at page startup?

David Hunt January 22, 2020

On my main Confluence page I'd like a big red banner that states "Website www.xyz.com is down!" whenever that site is down. Is there a built in way to do this, or is there a way to run a block of HTML code that could check this? I don't want the banner to appear if the website is available.

(Atlassian Confluence 6.15.8)

1 answer

1 accepted

1 vote
Answer accepted
DPKJ
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 22, 2020

@David HuntThere is no default way of doing this. But you can customize look and feel of page header section in Confluence.

So I would suggest you to add empty `div` as a placeholder and a custom JS, that verify if the site is UP and in case site is down, insert some text in div.

You can learn this from here - https://confluence.atlassian.com/confkb/how-to-add-a-site-wide-banner-165609599.html

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events