Last active
January 4, 2016 06:59
-
-
Save akras14/8585246 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
(function(){ | |
function getViewportWidth() { | |
var e = window; | |
var a = 'inner'; | |
if (!( 'innerWidth' in window )) { | |
a = 'client'; | |
e = document.documentElement || document.body; | |
} | |
return e[ a + 'Width' ]; | |
} | |
var clientWidth = getViewportWidth(); | |
//If client uses big screen | |
if (clientWidth && clientWidth > 920) { | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment