Difference between revisions of "Team:Cambridge-JIC/Templates/Menu"
Line 124: | Line 124: | ||
if(~window.location.href.indexOf(hr)){ | if(~window.location.href.indexOf(hr)){ | ||
+ | |||
+ | if($(this).parent().parent().prop('className')=="nav") { | ||
+ | $(this).parent().attr("class", "nh"); | ||
+ | } | ||
+ | |||
+ | if($(this).parent().parent().parent().prop('className')=="navsub") { | ||
+ | $(this).parent().parent().parent().attr("class", "nhs"); | ||
+ | } | ||
+ | |||
console.log(hr) | console.log(hr) | ||
+ | |||
+ | |||
} | } | ||
} | } |
Revision as of 00:21, 4 August 2015