Created
March 9, 2013 22:09
-
-
Save jamiees2/5125967 to your computer and use it in GitHub Desktop.
A simple media query snippet for enquire.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enquire.register("screen and (max-width:803px)",{ | |
match: function(){ | |
//code to do when the media query matches | |
}, | |
unmatch: function(){ | |
//code do do when the media query does not match | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment