Skip to content
This repository has been archived by the owner on Jul 7, 2018. It is now read-only.
/ fireworkjs Public archive

A jQuery plugin to create short lived, real time, notifications to the user.

Notifications You must be signed in to change notification settings

smalldogs/fireworkjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

firework.js

A jQuery plugin to create short lived, real time, notifications to the user.

Useage

Include files

<link type="text/css" rel="stylesheet" href="jquery.firework.css">

<script type="text/javascript" src="jquery.firework.js"></script>

Call firework

firework.launch(message, type [optional], display time [optional]);

Useage examples

Display the message "Hello world!" for 1.5 seconds.

firework.launch('Hello world!');

Display a specific message type (error, success)

firework.launch('Great news', 'success');

firework.launch('Bad news', 'error');

Display an error message for a 10 seconds

firework.launch('Read this bad news', 'error', 10000);

Display a firework message on the next page load (requires jQuery Cookie plugin)

firework.sticky('We redirected you to safety', 'success')

About

A jQuery plugin to create short lived, real time, notifications to the user.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published