Team:NCTU Formosa/source/head
From 2013.igem.org
(Difference between revisions)
Line 38: | Line 38: | ||
.closest(".toclevel-1").removeClass("active") | .closest(".toclevel-1").removeClass("active") | ||
.end().filter("[href=" + href +"]").closest(".toclevel-1").addClass("active"); | .end().filter("[href=" + href +"]").closest(".toclevel-1").addClass("active"); | ||
+ | menuItems | ||
+ | .closest(".toclevel-2").removeClass("active") | ||
+ | .end().filter("[href=" + href +"]").closest(".toclevel-2").addClass("active"); | ||
setTimeout(function(){ noScrollAction = false; }, 10); | setTimeout(function(){ noScrollAction = false; }, 10); | ||
} | } | ||
Line 63: | Line 66: | ||
.closest(".toclevel-1").removeClass("active") | .closest(".toclevel-1").removeClass("active") | ||
.end().filter("[href=#"+id+"]").closest(".toclevel-1").addClass("active"); | .end().filter("[href=#"+id+"]").closest(".toclevel-1").addClass("active"); | ||
+ | } | ||
+ | menuItems | ||
+ | .closest(".toclevel-2").removeClass("active") | ||
+ | .end().filter("[href=#"+id+"]").closest(".toclevel-2").addClass("active"); | ||
} | } | ||
} | } |
Revision as of 15:26, 26 September 2013