Created
October 25, 2022 04:49
-
-
Save rg3915/6a8f8b18daf742cbe8519036efd3c0bd to your computer and use it in GitHub Desktop.
close alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Close alert after 2 seconds | |
window.setTimeout(function() { | |
$('.alert').fadeTo(500, 0).slideUp(500, function() { | |
$(this).remove(); | |
}); | |
}, 2000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment