Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 937 Bytes

README.md

File metadata and controls

34 lines (27 loc) · 937 Bytes

MaterialNotify

An ultra super lightweight material notification with Javascript(JQuery) and CSS.
In android I love to use snackbar, now I made something like that in HTML.

Demo

You can edit and add you app theme color. Feel free to add pull requests or issues.

Installation

Add materialNotify.js
<script  src="./materialNotify.js"></script>

And materialNotify.css in your html

<link rel="stylesheet" href="./materialNotify.css">

Then call

notify(text, duration, isRed, onDone)



Document

text is text showing in notify.
duration is time in seconds.
isRed, true for alert and false for success notify.
onDone(optional) is function called after notify hides.

You can show multiple notification at same time without limit.