Skip to content

pauld8/notifyme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NotyMe

Simple javascript pop-up notifications. jQuery is required.

Current Version

1.0.0

Install

npm install --save notyme

Integration

  1. Link to notifications.css

  2. Link to notifications.js

  3. Use $.notification() to display a notification (types: success, danger, warning, info)

    $.notification('message', { options });

Example

$.notification('Please fill out the missing details', {
	type: 'danger',
	allowClose: false,
	onHide: function() {
		// do something with the form... etc
	}
});

Default options

$.notification.defaults = {
	type: 'success',
	allowClose: true,
	timeout: 5000,
	maxWidth: 500,
	onHide: null,
	onShow: null
};

Copyright

Copyright © 2018

About

Simple jQuery popup notification plugin

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published