Last active
November 18, 2015 13:26
-
-
Save tonydieu/8456eabbdb3af04f71f0 to your computer and use it in GitHub Desktop.
width fix/hack ms/mac broswer
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
// http://luxiyalu.com/window-innerwidth-vs-window-innerwidth/ | |
var width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment