Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,460,928
Community Members
 
Community Events
176
Community Groups

Announcement banner shows after refresh the page for second

Hi Team,

We have added an announcement banner to show some custom messages only for users on the login page or display only to those who have not logged in to Jira.

code seems to work but also shows when logged in user refreshes the page for a second and goes off which is kind of annoying

<div class="infoBox loginHelp" style="margin: 4px; padding: 2px;">
<ul>
<li>Some custom message 1 </li>
<li>Some custom message 2 </li>
<li>Some custom message 3 </li>
</ul>
</div>

<style id="hideLoginMods" type="text/css">
.infoBox.loginHelp ul > li {
margin-bottom: 3px;
}

/* hide the default login advice (delay to after Jira runs) */
#sign-up-hint, #forgotpassword, #publicmodeoffmsg, #login-form-cancel {display: none;}
</style>

<script type="text/javascript">
//only show the custom login advice on login, banner edit, and forgot login pages
$(document).ready(function() {
var val = $("input[title='loggedInUser']");
if (val) {
val = val.val();
}
if (val) {
$(".loginHelp").hide();
}
if (window.location.href.indexOf("EditAnnouncementBanner") != -1) {
$(".loginHelp").show();
}
});
</script>

Any help would be appreciated, thanks in advance.

0 answers

Suggest an answer

Log in or Sign up to answer