Difference between revisions of "Team:Aalto-Helsinki/InterLabBook"
(fixed the responsive navigation) |
m (responsive navigation changes the active class before the header is on the top of the page) |
||
Line 431: | Line 431: | ||
if (windscroll >= 100) { | if (windscroll >= 100) { | ||
$('.plasmids section').each(function(i) { | $('.plasmids section').each(function(i) { | ||
− | if ($(this).position().top <= windscroll + | + | if ($(this).position().top <= windscroll + 140) { |
$('#sidenav a.active').removeClass('active'); | $('#sidenav a.active').removeClass('active'); | ||
$('#sidenav a').eq(i).addClass('active'); | $('#sidenav a').eq(i).addClass('active'); |
Revision as of 08:30, 25 August 2015