Created
June 10, 2014 23:47
-
-
Save soc/186500f41465a5d97e37 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| $(window).resize(function() { | |
| if((window.fullScreen) || (window.innerWidth == screen.width && window.innerHeight == screen.height)) { | |
| $("html").css("overflow", "hidden"); | |
| } else { | |
| $("html").css("overflow", "auto"); | |
| } | |
| }); | |
| $(document).ready(function(){ | |
| $(window).resize(); | |
| // trigger the function when the page loads | |
| // if you have another $(document).ready(), simply add this line to it | |
| }); |
soc
commented
Jun 11, 2014
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment