Team:DTU-Denmark/Templates/StartPage
From 2013.igem.org
(Difference between revisions)
Line 30: | Line 30: | ||
$(window).scroll(function () { | $(window).scroll(function () { | ||
var scrollPos = $(window).scrollTop(); | var scrollPos = $(window).scrollTop(); | ||
- | if (scrollPos > 240) { <!-- was 110 -jakob --> | + | if (scrollPos > 240) { <!-- was 110 -jakob, we need to remeasure the heigth of our top banner --> |
$(".navigation").addClass("stickToTop"); | $(".navigation").addClass("stickToTop"); | ||
} else { | } else { | ||
Line 36: | Line 36: | ||
} | } | ||
- | + | if (scrollPos > 180) { | |
+ | $(".toc").addClass("stickBelowNavigation"); | ||
+ | } else { | ||
+ | $(".toc").removeClass("stickBelowNavigation"); | ||
+ | } | ||
}); | }); |
Revision as of 08:37, 12 July 2013