Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const showMsg = localStorage.getItem('showMsg');
- if(showMsg === 'false'){
- $('#alert').hide();
- }
- $('.closebtn').on('click', function(){
- $('#alert').fadeOut('slow');
- localStorage.setItem('showMsg', 'false');
- });
- if(showMsg === 'false'){
- $('.alert').hide();
- } else {
- $('.alert').delay(1000).fadeIn();
- }
Add Comment
Please, Sign In to add comment