Created
September 16, 2016 06:40
-
-
Save kolyasademetrio/db5a83932aa4611bc78b5ec1b6809a8f to your computer and use it in GitHub Desktop.
jQuery: matchMedia
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
$(window).resize(function(){ | |
if ( window.matchMedia("screen and (max-width: 768px)").matches ) { | |
} else { | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment