Created
January 18, 2013 07:19
-
-
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]".
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
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