Skip to content

jefersonsmota/motajs-notify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

motajs-notify

Very simple browser notification.

Getting Started

Insert css and js files

<link rel="stylesheet" href="../dist/css/notify.min.css">
<script src="../dist/js/notify.min.js"></script>

and use!

    notify.success('Your message notification', 4000);
    // or notify.success('Your message notification');
    // timout is default 5000 ms

notifications supported

    notify.error('This is an erro notification');
    notify.warning('This is a warning notification');
    notify.info('This is an info notification');
    notify.success('This is a success notification');

    // or

    notify.show('Message text', 'messageType', timout);
    // messageType: 'error' | 'info' | 'success' | 'warning'

Authors

  • Jeferson Mota

License

MIT

About

Very simple and light web notification.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published