Tiny plugin to show alert from Bootstrap.
Warning
This repository hasn't been actively maintained for quite some time. The code is still here if you find it useful, but no further updates or support will be provided.
The following options are supported:
- extraClass: add extra classes to alert div (default = '')
- closeButton: create close button (default = true)
- fadeEffect: add fade effect classes (default = true)
// Example #1
$('.alert-container').Alertiny(
'success',
'Example only with alert type and alert message.'
);// Example #2
$('.alert-container').Alertiny(
'info',
'Example with extra classes.',
{extraClass: 'example'}
);// Example #3
$('.alert-container').Alertiny(
'warning',
'Example without close button.',
{closeButton: false}
);// Example #4
$('.alert-container').Alertiny(
'danger',
'Example without fade effect.',
{fadeEffect: false}
);Code released under the MIT license.