Last active
December 27, 2015 09:09
-
-
Save davelab/7301274 to your computer and use it in GitHub Desktop.
media queries control for jquery
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
var winWidth = $(window).width(); | |
if (winWidth <= '320') { //iPhone only Portrait orientation | |
}else if (winWidth >= '321' && winWidth <= '480') { //iPhone Landscape orientation | |
}else if (winWidth >= '481' && winWidth <= '768') { //iPad Portrait orientation | |
}else if (winWidth >= '769' && winWidth <= '1024') { //iPad Landscape orientation | |
}else if (winWidth >= '1025' && winWidth <= '1280') { //Desktop and Laptop | |
}else if (winWidth >= '1281') { //Desktop large screen | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment