Skip to content

Instantly share code, notes, and snippets.

@xavez
Created November 7, 2013 15:46
Show Gist options
  • Save xavez/7356768 to your computer and use it in GitHub Desktop.
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.
$(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