philippesilva / allert.js

A simple JavaScript notification library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allert.js

A simple JavaScript notification library

Check out this demo page

Installation

Download allert.js:

  • from Github
  • with npm: npm install allert.

Usage

To call a notification, use allert(text, options). Examples :

allert('Default');
allert('Options', { type: 'success', icon: 'fa fa-check' });   // type matches CSS class `.alert.type`
allert('Yeeaahh!!!', { duration: '2000' } // time is ms

By Philippe Silva

About

A simple JavaScript notification library

License:The Unlicense


Languages

Language:JavaScript 44.0%Language:HTML 29.6%Language:CSS 26.4%