Team:DTU-Denmark/Templates/Standard page begin
From 2011.igem.org
(Difference between revisions)
Line 20: | Line 20: | ||
} else { | } else { | ||
$(".navigation").removeClass("stickToTop"); | $(".navigation").removeClass("stickToTop"); | ||
+ | } | ||
+ | if (scrollPos > 150) { | ||
+ | $(".toc").addClass("stickBelowNavigation"); | ||
+ | } else { | ||
+ | $(".toc").removeClass("stickBelowNavigation"); | ||
} | } | ||
}); | }); |
Revision as of 16:32, 18 September 2011