Skip to content
/ infoo Public

A simple JavaScript inline notifications module like 'toastr' or 'notifer.js'

Notifications You must be signed in to change notification settings

hooblei/infoo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

infoo

A simple JavaScript inline notifications module like 'toastr' or 'notifer.js'

Requirements

  • jQuery >= 1.7
  • Bootstrap alert (css + js module) >= 2.0

Usage

Link the infoo .js and .css

<link href="infoo.css" rel="stylesheet"/>
...
<script src="infoo.js"></script>

A default 'info' notification:

infoo.info('Hola rola');

Success notificaition that will dismiss after 10 seconds:

infoo.success('Jay, we did it!', 10);

A error notificaition with an explicit title:

infoo.error('Something went wrong!', 'Uh, Oh an Error!');

Create custom notification handlers:

var omg = infoo.handler({
    title: 'OMG',
    clss: 'alert-info',
    timeout: 3
});

omg('infoo is so easy');

See Options for defaults

Options

... tbc

About

A simple JavaScript inline notifications module like 'toastr' or 'notifer.js'

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published