Created
November 7, 2013 15:46
-
-
Save xavez/7356768 to your computer and use it in GitHub Desktop.
jQuery script to turn a normal website into an iOS fullscreen web app by routing all links through javascript.
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
$(document).on( | |
"click", | |
"a", | |
function (e) { | |
e.preventDefault(); | |
location.href = $( e.target ).attr( "href" ); | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment