Team:DTU-Denmark/Templates/StartPage

From 2013.igem.org

(Difference between revisions)
Line 51: Line 51:
<!-- new attempt to fix menubar (jakob) -->
<!-- new attempt to fix menubar (jakob) -->
-
        //  var scroll_pos_above_menubar = scrollPos < 250;
+
            var scroll_pos_above_menubar = scrollPos < 250;
-
             if(scrollPos < 250){
+
             if(scroll_pos_above_menubar){
-
                   $(".navigation").offset({top: $(".whitebox.article").offset().top + $(".navigation")[0].height() });
+
                   $(".navigation").offset({top: 440 });
             } else {
             } else {
                   $(".navigation").offset({top: scrollPos});
                   $(".navigation").offset({top: scrollPos});

Revision as of 19:31, 4 October 2013