cheatsheets/harvey.js.md

31 lines
594 B
Markdown
Raw Permalink Normal View History

2017-08-28 21:56:17 +02:00
---
title: Harvey.js
category: JavaScript libraries
2017-10-29 16:51:23 +01:00
intro: |
[Harvey.js](http://harvesthq.github.io/harvey/) helps you build responsive interfaces.
2017-08-28 21:56:17 +02:00
---
### Usage
2017-10-29 16:51:23 +01:00
```js
Harvey.attach('(min-width: 600px)', {
setup: function () {
// Called on first enter
},
on: function () {
// Called on every enter
},
off: function () {
// Called on every exit
}
})
```
2017-08-28 21:56:17 +02:00
2017-10-29 16:56:20 +01:00
### Deprecated
Harvey.js hasn't been updated in a while, as of time of writing. Consider [enquire.js](https://github.com/WickyNilliams/enquire.js) instead.
2017-08-28 21:56:17 +02:00
### References
2017-10-29 16:51:23 +01:00
* <http://harvesthq.github.io/harvey>