Simple notifications with useful options.
[todo]
[todo]
- jQuery
[todo]
Include the script in your page:
<script src="path/to/notify.js"></script>
Initialize with the options you need:
var config = {
positionX: 'right', // {string} "right|left"
positionY: 'bottom', // {string} "top|bottom"
timeFade: 250, // {number} milliseconds to fade out
timeVisible: 5000 // {number} milliseconds the notification is visible
};
notify.init(config);
Trigger notifications with options:
notify.add({
title: 'Talk less. Smile more.',
body: 'No one else was in the room where it happened.',
persist: true,
status: 'warn'
});