harvey.js: update
This commit is contained in:
parent
eb736e9c1d
commit
46184e70e6
15
harvey.js.md
15
harvey.js.md
|
@ -1,20 +1,27 @@
|
||||||
---
|
---
|
||||||
title: Harvey.js
|
title: Harvey.js
|
||||||
category: JavaScript libraries
|
category: JavaScript libraries
|
||||||
|
layout: 2017/sheet
|
||||||
|
intro: |
|
||||||
|
[Harvey.js](http://harvesthq.github.io/harvey/) helps you build responsive interfaces.
|
||||||
---
|
---
|
||||||
|
|
||||||
### Usage
|
### Usage
|
||||||
|
|
||||||
Harvey.attach('(min-width: 600px)', {
|
```js
|
||||||
|
Harvey.attach('(min-width: 600px)', {
|
||||||
setup: function () {
|
setup: function () {
|
||||||
|
// Called on first enter
|
||||||
},
|
},
|
||||||
on: function () {
|
on: function () {
|
||||||
|
// Called on every enter
|
||||||
},
|
},
|
||||||
off: function () {
|
off: function () {
|
||||||
|
// Called on every exit
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
```
|
||||||
|
|
||||||
### References
|
### References
|
||||||
|
|
||||||
* http://harvesthq.github.io/harvey/harvey.js
|
* <http://harvesthq.github.io/harvey>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue