Team:DTU-Denmark/Templates/StartPage

From 2013.igem.org

(Difference between revisions)
Line 35: Line 35:
                 $(".navigation").removeClass("stickToTop");
                 $(".navigation").removeClass("stickToTop");
             }
             }
-
<!-- here is added table of content fixing to screen : was 35 with Title OutsideWhitebox-->
+
<!-- here is added table of content fixing to screen : was all 35 with Title OutsideWhitebox-->
-
             var toc_margin_from_top = $(".navigation").height() + 35;
+
             var toc_margin_from_top = $(".navigation").height() + 68;
             var scroll_pos_above_start_of_article = scrollPos < $(".whitebox.article").offset().top - 68;
             var scroll_pos_above_start_of_article = scrollPos < $(".whitebox.article").offset().top - 68;
             var toc_end_reached_bottom_of_article = scrollPos + toc_margin_from_top + $(".toc").height() > $(".whitebox.article").offset().top + $(".whitebox.article").height() - 35;
             var toc_end_reached_bottom_of_article = scrollPos + toc_margin_from_top + $(".toc").height() > $(".whitebox.article").offset().top + $(".whitebox.article").height() - 35;

Revision as of 08:33, 27 August 2013