Skip to content

Commit

Permalink
Make welcome msg dissapear
Browse files Browse the repository at this point in the history
  • Loading branch information
ronardcaktus committed Sep 3, 2023
1 parent 1fc5c1d commit c073450
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion apps/countries/templates/country/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

<div class="welcome-msg-body">
<div class="welcome-msg-message display-1" id="message">
Type a country name & search...
Type a country's name to search...
</div>
</div>

Expand All @@ -46,6 +46,12 @@
} else {
element.style.opacity = '1';
element.style.transform = 'translateY(0)';

// Hide the message after 5 seconds
setTimeout(() => {
element.style.opacity = '0';
element.style.transform = 'translateY(100%)';
}, 4000);
}
}

Expand Down

0 comments on commit c073450

Please sign in to comment.