Skip to content

Instantly share code, notes, and snippets.

@akras14
Last active January 4, 2016 06:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akras14/8585246 to your computer and use it in GitHub Desktop.
Save akras14/8585246 to your computer and use it in GitHub Desktop.
(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