A JavaScript library for toast notification
- Simple look like android notification.
- Does not depend on jQuery.
npm install negi141/a-toast
https://negi141.github.io/a-toast/
<link rel="stylesheet" href="a-toast.css" />
<script src="a-toast.js"></script>var toast = new aToast();
// Set options (optional)
// speed : Display time. millisecond. default=4000.
// position : Display position. 'top' or 'bottom'. default='top'.
toast.setOption(speed, position);
// Show notifications
// message : The text to display
// style : Notification color. '' or 'success' or 'warn' or 'danger'. default=''.
toast.show(message, style);
toast.success(message);
toast.warn(message);
toast.danger(message);