Skip to content

Instantly share code, notes, and snippets.

@techguydave
Created January 18, 2013 07:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save techguydave/4562908 to your computer and use it in GitHub Desktop.
Save techguydave/4562908 to your computer and use it in GitHub Desktop.
Stuff will load only if the URL is "/portfolio" or "/portfolio/[any-category]", but not "/portfolio/[any-category]/[any-album]".
if(parseUri(window.location.href).directory=='/portfolio'||((portfolioPath[2])&&(typeof(portfolioPath[3]) === 'undefined'))){
do_stuff();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment