Team:DTU-Denmark/Templates/StartPage

From 2013.igem.org

(Difference between revisions)
m
m
Line 39: Line 39:
             var toc_margin_from_top = $(".navigation").height() + 35;
             var toc_margin_from_top = $(".navigation").height() + 35;
             var scroll_pos_above_start_of_article = scrollPos < $(".whitebox.article").offset().top - 35;
             var scroll_pos_above_start_of_article = scrollPos < $(".whitebox.article").offset().top - 35;
-
             var toc_end_reached_bottom_of_article = scrollPos + $(".toc").height() > $(".whitebox.article").offset().top + $(".whitebox.article").height() - $(".toc").height() - 35;
+
             var toc_end_reached_bottom_of_article = scrollPos + $(".toc").height() > $(".whitebox.article").offset().top + $(".whitebox.article").height() - 35;
             if(scroll_pos_above_start_of_article){
             if(scroll_pos_above_start_of_article){

Revision as of 14:49, 22 July 2013

{{{1}}}