Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jacobbubu/easy-div
- Owner: jacobbubu
- License: mit
- Created: 2015-02-28T03:12:59.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-28T06:31:58.000Z (almost 10 years ago)
- Last Synced: 2024-12-13T18:48:59.834Z (about 1 month ago)
- Language: JavaScript
- Size: 133 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.