Skip to content

Instantly share code, notes, and snippets.

@riklomas
Created June 16, 2009 09:14
Show Gist options
  • Save riklomas/130614 to your computer and use it in GitHub Desktop.
Save riklomas/130614 to your computer and use it in GitHub Desktop.
For adding a class to anchors
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