Created
January 22, 2013 18:34
-
-
Save motorcitymobi/4597012 to your computer and use it in GitHub Desktop.
// Hide address bar
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
// Hide address bar on mobile devices (except if #hash present, so we don't mess up deep linking). | |
if (Modernizr.touch && !window.location.hash) { | |
$(window).load(function () { | |
setTimeout(function () { | |
window.scrollTo(0, 1); | |
}, 0); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment