1.0.1 • Published 10 years ago
jnotice v1.0.1
JNotice
Great Javascript notification in the browser
Getting started
npm install jnoticeyour project or download archive- Include JNotice.js, JNotice.css and JNotice-animate.css
- Create instance JNotice with your options
- Add the object to the notification
- Call JNotice at the right time
<script>
var jnotice = new JNotice();
jnotice.add({html: 'Hello world JNotice!', duration: 3000});
jnotice.call();
</script>Instance options
Notification object options
Public methods
add - Add notification in storage. It may be an object or an array of objects.
call - Call added notification
getStorage - Get the current storage
clearStorage - Clear the current storage
dismissAll - Hide all shown now notification
destroy - remove container and all notification
Events
show - Moment show the notification
hide - Moment hide the notification. event.hideIsUser - will help to identify hide user or system timer
Browsers support
Chrome, FF, Opera, Safari, IE9+
Example
See example - JNotice
1.0.1
10 years ago