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