Created
January 10, 2017 15:16
-
-
Save floster/900da4275a05fac611a9c20575b109df to your computer and use it in GitHub Desktop.
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 height = (window.innerHeight > 0) ? window.innerHeight : screen.height; | |
// var width = (window.innerWidth > 0) ? window.innerWidth : screen.width; | |
$(function() { | |
$(window).on('load resize orientationchange', function() { | |
var width = (window.innerWidth > 0) ? window.innerWidth : screen.width; | |
if ( width <= 777 && width > 480 ) { | |
// do smthng | |
} else if ( width <= 480 ) { | |
// do smthng | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment