Skip to content

Instantly share code, notes, and snippets.

@Hunter-Dolan
Created April 17, 2011 12:07
Show Gist options
  • Save Hunter-Dolan/923991 to your computer and use it in GitHub Desktop.
Save Hunter-Dolan/923991 to your computer and use it in GitHub Desktop.
function hash() {
var page = document.location.hash.replace('#!/', '');
if (page == ''){
page = 'home';
}
return page;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment