Skip to content

gravitydepartment/notify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Gravity Department

GravDept Notify

Simple notifications with useful options.

Demo

[todo]

Features

[todo]

Dependencies

  • jQuery

Usage

[todo]

Include the script in your page:

<script src="path/to/notify.js"></script>

Initialize with the options you need:

var config = {
    positionX:   'right',  // {string} "right|left"
    positionY:   'bottom', // {string} "top|bottom"
    timeFade:    250,      // {number} milliseconds to fade out
    timeVisible: 5000      // {number} milliseconds the notification is visible
};

notify.init(config);

Trigger notifications with options:

notify.add({
    title: 'Talk less. Smile more.',
    body: 'No one else was in the room where it happened.',
    persist: true,
    status: 'warn'
});

About

Simple notifications with useful options.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published