Skip to content

A very small library for material notification with Javascript and css

License

Notifications You must be signed in to change notification settings

AmirMehr/MaterialNotify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A very small library for material notification with Javascript and css

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published