Team:NCTU Formosa/source/head
From 2013.igem.org
(Difference between revisions)
Line 48: | Line 48: | ||
menuItems | menuItems | ||
.parent().removeClass("active") | .parent().removeClass("active") | ||
+ | .parent(.toclevel-1).removeClass("active") | ||
.end().filter("[href=" + href +"]").parent().addClass("active"); | .end().filter("[href=" + href +"]").parent().addClass("active"); | ||
+ | .end().filter("[href=" + href +"]").parent(.toclevel-1).addClass("active"); | ||
setTimeout(function(){ noScrollAction = false; }, 10); | setTimeout(function(){ noScrollAction = false; }, 10); | ||
} | } | ||
Line 70: | Line 72: | ||
menuItems | menuItems | ||
.parent().removeClass("active") | .parent().removeClass("active") | ||
+ | .parent(.toclevel-1).removeClass("active") | ||
.end().filter("[href=#"+id+"]").parent().addClass("active"); | .end().filter("[href=#"+id+"]").parent().addClass("active"); | ||
+ | .end().filter("[href=#"+id+"]").parent(.toclevel-1).addClass("active"); | ||
} | } | ||
} | } |
Revision as of 14:02, 23 September 2013