Difference between revisions of "Template:ETH Zurich"
m |
m |
||
Line 119: | Line 119: | ||
{ | { | ||
var refElement = $(currentLink.attr("href")); | var refElement = $(currentLink.attr("href")); | ||
− | if (refElement.position().top <= windowPos && (refElement.position().top + refElement.height() + $("# | + | if (refElement.position().top <= windowPos && (refElement.position().top + refElement.height() + $("#sideMenu").height() ) > windowPos) { |
$('#sideMenu li a').removeClass("current"); | $('#sideMenu li a').removeClass("current"); | ||
currentLink.addClass("current"); | currentLink.addClass("current"); |
Revision as of 17:52, 19 August 2015