Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brendanashworth/messagebox
Extremely small, client-side message boxes with a slick interface (+bootstrap)
https://github.com/brendanashworth/messagebox
Last synced: 9 days ago
JSON representation
Extremely small, client-side message boxes with a slick interface (+bootstrap)
- Host: GitHub
- URL: https://github.com/brendanashworth/messagebox
- Owner: brendanashworth
- License: other
- Created: 2014-07-04T09:15:26.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-07-04T09:15:41.000Z (over 10 years ago)
- Last Synced: 2023-04-10T02:50:27.497Z (over 1 year ago)
- Language: JavaScript
- Size: 105 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
MessageBox
======> MessageBox is a quick tool for displaying client side errors, warnings, and general messages.
#### Install
```bash
$ 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
```javascript
// Note: jQuery must already be loaded.
var myBox = new MessageBox('#selector');
myBox.changeMessage('danger', 'Uh oh! You left something undone.');
```