Submit your widget

simple jQuery plugin called notifyMe

Created 5 years ago   Views 9270   downloads 1408    Author brunodsgn
simple jQuery  plugin called notifyMe
View DemoDownload 56.0 KB
32
Share |

notifyMe is a simple plugin that i created for fun and learning for fixed notifications in pages.
He works when a button is clicked, errors, validations, info and everything you want.

We'll use it:

Call the stylesheet with the styles

<link rel="assets/css/notifyme.css" type="text/css" />

For use this plugin is necessary add jQuery lib in your page:

<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>

Add the notifyMe.js after jquery lib:

<script type="text/javascript" src="assets/js/notifyme.js"></script>

in a element is simple, for use when click in a button for example:

$('.error').on('click', function(){
    $(this).notifyMe(
        'bottom', // Position
        'error', // Type
        'Lorem Ipsum Text', // Title
        'Lorem Ipsum is simply dummy text of the printing', // Description
        200 // Velocity of notification
	2000 // (optional) Time of delay to close automatically
    );
});

Read more:http://brunodsgn.github.io/notifyme/

Tag: dialog