Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jacobbubu/easy-div

A handy div element used in web page
https://github.com/jacobbubu/easy-div

Last synced: 14 days ago
JSON representation

A handy div element used in web page

Awesome Lists containing this project

README

        

# easy-div

This module provides a very simple div element for your demos and prototypes up and running. Ideal for use with Beefy.

# Example

```js
var easyDiv = require('easy-div');
var div = easyDiv({
onResize: function(width, height) {
this.innerHTML = 'Window Size: ' + width + 'x' + height;
},
onReady: function() {
console.log('DOM Loaded');
}
},
document.body
);
```

Please see `demo/demo.js` for further usage.

# play with beefy

Clone to your computer.

```
git clone https://github.com/jacobbubu/easy-div.git easy-div
cd easy-div
npm install
```

And then:

```
npm start
```

And open up `localhost:9966` in your browser.