Harvey.js Cheat Sheet

From WikiOD

Here is the cheatsheat of Harvey.js and basic guide on how to use Harvey.js

Usage[edit | edit source]

Harvey.attach('(min-width: 600px)', {
  setup: function () {
    // Called on first enter
  },
  on: function () {
    // Called on every enter
  },
  off: function () {
    // Called on every exit
  }
})

Deprecated[edit | edit source]

Harvey.js hasn’t been updated in a while, as of time of writing. Consider enquire.js instead.

References[edit | edit source]

Credit:rstacruz