Team:DTU-Denmark/Templates/StartPage
From 2013.igem.org
(Difference between revisions)
m |
m |
||
Line 41: | Line 41: | ||
if(scroll_pos_above_start_of_article){ | if(scroll_pos_above_start_of_article){ | ||
- | $(".toc").offset( | + | $(".toc").offset({top: $(".whitebox.article").offset().top + 20}); |
} else if(toc_end_reached_bottom_of_article){ | } else if(toc_end_reached_bottom_of_article){ | ||
- | $(".toc").offset( | + | $(".toc").offset({top = $(".whitebox.article").offset().top + $(".whitebox.article").height() - $(".toc").height() - 10}); |
} else { | } else { | ||
- | $(".toc").offset({top: scrollPos | + | $(".toc").offset({top: scrollPos - 10}); |
} | } | ||
Revision as of 14:29, 22 July 2013