brendanashworth / messagebox

Extremely small, client-side message boxes with a slick interface (+bootstrap)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MessageBox

MessageBox is a quick tool for displaying client side errors, warnings, and general messages.

Install

$ git clone https://github.com/boboman13/messagebox && cd messagebox
$ npm install
$ grunt

This will give you a messagebox.min.js and a messagebox.min.css. Loading the .js file is necessary; the .css file only contains animations for the alerts (very nice looking), however is not necessary.

Usage

// Note: jQuery must already be loaded.
var myBox = new MessageBox('#selector');
myBox.changeMessage('danger', 'Uh oh! You left something undone.');

About

Extremely small, client-side message boxes with a slick interface (+bootstrap)

License:Other


Languages

Language:JavaScript 40.1%Language:CoffeeScript 36.4%Language:CSS 23.5%