Simple javascript pop-up notifications. jQuery is required.
1.0.0
npm install --save notyme
-
Link to notifications.css
-
Link to notifications.js
-
Use $.notification() to display a notification (types: success, danger, warning, info)
$.notification('message', { options });
$.notification('Please fill out the missing details', {
type: 'danger',
allowClose: false,
onHide: function() {
// do something with the form... etc
}
});
$.notification.defaults = {
type: 'success',
allowClose: true,
timeout: 5000,
maxWidth: 500,
onHide: null,
onShow: null
};
Copyright © 2018