motajs-notify

1.0.6 • Public • Published

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

Package Sidebar

Install

npm i motajs-notify

Weekly Downloads

0

Version

1.0.6

License

MIT

Unpacked Size

12.3 kB

Total Files

8

Last publish

Collaborators

  • jefersonsmota