Skip to content

A lightweight jQuery plugin for simple, colorful and elegant alerts.

License

Notifications You must be signed in to change notification settings

TetrisSmalls/Alertigo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Alertigo

A lightweight jQuery plugin for simple, colorful and elegant alerts.

Demo / Examples

Alertigo Demo / Examples

Usage

Default Implementation

Default implementation with custom alert.

<div id="alertigo"></div>
$(document).ready(function(){
  alertigo('Lorem ipsum dolor sit amet, consectetur adipiscing elit.');
});

Background Color Implementation

Background color implementation with custom alert and background color options. Default is blue.

<div id="alertigo"></div>
$(document).ready(function(){
  alertigo('Lorem ipsum dolor sit amet, consectetur adipiscing elit.');
  alertigo('Lorem ipsum dolor sit amet, consectetur adipiscing elit.', {color: 'green'});
  alertigo('Lorem ipsum dolor sit amet, consectetur adipiscing elit.', {color: 'light-blue'});
  alertigo('Lorem ipsum dolor sit amet, consectetur adipiscing elit.', {color: 'orange'});
  alertigo('Lorem ipsum dolor sit amet, consectetur adipiscing elit.', {color: 'red'});
});

Lifespan Implementation

Lifespan implementation with custom alert. Default is 3000 milliseconds.

<div id="alertigo"></div>
$(document).ready(function(){
  alertigo('Lorem ipsum dolor sit amet, consectetur adipiscing elit.', {life: '1000'});
  alertigo('Lorem ipsum dolor sit amet, consectetur adipiscing elit.', {life: '2000'});
  alertigo('Lorem ipsum dolor sit amet, consectetur adipiscing elit.', {life: '5000'});
  alertigo('Lorem ipsum dolor sit amet, consectetur adipiscing elit.', {life: '10000'});
});

Sticky Implementation

Sticky implementation with custom alert. Default is false.

<div id="alertigo"></div>
$(document).ready(function(){
  alertigo('Lorem ipsum dolor sit amet, consectetur adipiscing elit.', {sticky: true});
});

About

A lightweight jQuery plugin for simple, colorful and elegant alerts.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages