harvey.js: update

This commit is contained in:
Rico Sta. Cruz 2017-10-29 23:51:23 +08:00
parent eb736e9c1d
commit 46184e70e6
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
1 changed files with 17 additions and 10 deletions

View File

@ -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>