Created
July 18, 2011 08:12
-
-
Save sakunyo/1088856 to your computer and use it in GitHub Desktop.
_js_a_current
This file contains hidden or 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
(function(){ | |
$('#archive a').each(function(i){ | |
var t = $(this); | |
if(location.href.indexOf(t.attr('href')) > -1){ | |
t.addClass('current'); | |
} | |
}); | |
}()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment