Skip to content

Instantly share code, notes, and snippets.

@amici-fos
Created September 23, 2016 07:23
Show Gist options
  • Save amici-fos/31a6cee20f12fceefadbc41c65fe2a94 to your computer and use it in GitHub Desktop.
Save amici-fos/31a6cee20f12fceefadbc41c65fe2a94 to your computer and use it in GitHub Desktop.
$("a.mainlink").each(function(){
k=$(this).attr("href");m="https://www.amicicorp.net"+location.pathname;
if(k==m){$(this).parent().addClass('active2');}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment