motajs-notify
v1.0.6
Published
Very simple and lite web notification.
Downloads
18
Maintainers
Readme
motajs-notify
Very simple and minimum web 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