Template:Team:Edinburgh/Code
From 2013.igem.org
(Difference between revisions)
Hristianita (Talk | contribs) |
Hristianita (Talk | contribs) |
||
Line 408: | Line 408: | ||
for (var j=0; j < menu_links.length; j++) { | for (var j=0; j < menu_links.length; j++) { | ||
active=1; | active=1; | ||
- | + | if (window.location.href.indexOf(menu_links[j].href, window.location.href.length-menu_links[j].href.length) > -1) { | |
- | + | ||
active = 3; | active = 3; | ||
} | } | ||
- | |||
- | |||
- | |||
- | |||
if (active==3) { | if (active==3) { | ||
$(menu_links[j]).addClass("selflink"); | $(menu_links[j]).addClass("selflink"); |
Revision as of 00:23, 5 October 2013