A simple JavaScript notification library
Check out this demo page
Download allert.js:
- from Github
- with npm:
npm install allert
.
To call a notification, use allert(text, options)
. Examples :
allert('Default');
allert('Options', { type: 'success', icon: 'fa fa-check' }); // type matches CSS class `.alert.type`
allert('Yeeaahh!!!', { duration: '2000' } // time is ms
By Philippe Silva