Code: Select all
alert(1);
// Alert Fade
var alert = function () {
window.setTimeout(function() {
$('.alert-dismissible').fadeTo(1000, 0, function() {
$(this).remove();
});
}, 7000);
}
alert(2);
$(document).ready(alert);
$(document).on('click', 'button', alert);