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