Installation
require jQury
<script src="./path/to/jquery-version.min.js"></script> (version > 1.0)
require notify js
<script src='../path/to/notify/notify-1.0.min.js' type='text/javascript'></script> or <script src='../path/to/notify/notify-1.0.js' type='text/javascript'></script>
require notify css
<link href="../path/to/notify/notify-1.0.css" rel="stylesheet" type="text/css" /> or <link href="../path/to/notify/notify-1.0.min.css" rel="stylesheet" type="text/css" />
This is demo for notify.
Default Notify
$.notify("default notify, with cover and loading, 3s", 3000, "", true, true);
Click to Show Default Notify For 3 Seconds
$.notify("default notify, without cover, with loading, 3s", 3000, "", false, true);
Click to Show Default Notify Without Cover For 3 Seconds
$.notify("default notify, with cover, without loading, 3s", 3000, "", true, false);
Click to Show Default Notify Without Loading For 3 Seconds
$.notify("default notify, without cover and loading, 3s", 3000, "", false, false);
Click to Show Default Notify Without Cover and Loading For 3 Seconds
$.notify("loading default notify forever until next notify", -1, "", true, true); setTimeout(function() { $.notify("next default notify comes, the notify before hide", 3000, "", true, false); }, 10000);
Click to Show Default Notify Always Until Next Notify
Success Notify
$.notify("success notify, with cover, without loading, 3s", 3000, "success", true, false);
Click to Show Success Notify Without Loading For 3 Seconds
$.notify("success notify, without cover and loading, 3s", 3000, "success", false, false);
Click to Show Success Notify Without Cover and Loading For 3 Seconds
Information Notify
$.notify("information notify, with cover, without loading, 3s", 3000, "information", true, false);
Click to Show Information Notify Without Loading For 3 Seconds
$.notify("information notify, without cover and loading, 3s", 3000, "information", false, false);
Click to Show Information Notify Without Cover and Loading For 3 Seconds
Attention Notify
$.notify("attention notify, with cover, without loading, 3s", 3000, "attention", true, false);
Click to Show Attention Notify Without Loading For 3 Seconds
$.notify("attention notify, without cover and loading, 3s", 3000, "attention", false, false);
Click to Show Attention Notify Without Cover and Loading For 3 Seconds
Error Notify
$.notify("error notify, with cover, without loading, 3s", 3000, "error", true, false);
Click to Show Error Notify Without Loading For 3 Seconds
$.notify("error notify, without cover and loading, 3s", 3000, "error", false, false);
Click to Show Error Notify Without Cover and Loading For 3 Seconds
Download
Github
http://www.github.com/lisanmiao/notify