Created
June 16, 2009 09:14
-
-
Save riklomas/130614 to your computer and use it in GitHub Desktop.
For adding a class to anchors
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 (typeof window.location.hash == "string" && window.location.hash != "") | |
{ | |
$(window.location.hash).addClass('anchored'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment