Team:DTU-Denmark/Templates/StartPage
From 2013.igem.org
(Difference between revisions)
Line 42: | Line 42: | ||
if(scroll_pos_above_start_of_article){ | if(scroll_pos_above_start_of_article){ | ||
- | $(".toc").offset({top: $(".whitebox.article").offset().top + | + | $(".toc").offset({top: $(".whitebox.article").offset().top + 35}); |
} else if(toc_end_reached_bottom_of_article){ | } else if(toc_end_reached_bottom_of_article){ | ||
- | $(".toc").offset({top: $(".whitebox.article").offset().top + $(".whitebox.article").height() - $(".toc").height() - | + | $(".toc").offset({top: $(".whitebox.article").offset().top + $(".whitebox.article").height() - $(".toc").height() - 35}); |
} else { | } else { | ||
$(".toc").offset({top: scrollPos + toc_margin_from_top}); | $(".toc").offset({top: scrollPos + toc_margin_from_top}); |
Revision as of 08:26, 27 August 2013