Skip to content

easyNotify is a simple plugin for jQuery that allow you to send notification using HTML5 API

Notifications You must be signed in to change notification settings

LastyClementine/easyNotify

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

easyNotify is a simple plugin for jQuery that allow you to send notification using HTML5 API.

Support

Installation

Include script after the jQuery library:

<script src="easyNotify.js"></script>

Usage

Basic setup:

<div id="easyNotify"></div>  <!-- HTML -->
$("#easyNotify").easyNotify(); // JS

Options can be pass by object like:

```javascript var options = { title: "Notificação", options: { body: "O melhor do Brasil são os Brasileiros.", icon: "icon.png", lang: 'pt-BR', } };

$("#easyNotify").easyNotify(options);

<p>Functions can be pass by param to run on methods like onclose</p>
```javascript
var myCloseInfo = function(){
    alert('this is a callback function that runs after close the notification.');
};

var options = {
      title: "Notificação",
      options: {
        body: "O melhor do Brasil são os Brasileiros.",
        icon: "icon.png",
        lang: 'pt-BR',
        onClose: myCloseInfo
      }
    };

$("#easyNotify").easyNotify(options);

Demonstrations

easyNotify Jsfiddle Show + Code

Author

Gabriel Rodrigues

About

easyNotify is a simple plugin for jQuery that allow you to send notification using HTML5 API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%