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; | |
- | if( | + | if(scroll_pos_above_menubar){ |
- | $(".navigation").offset({top: | + | $(".navigation").offset({top: 440 }); |
} else { | } else { | ||
$(".navigation").offset({top: scrollPos}); | $(".navigation").offset({top: scrollPos}); |
Revision as of 19:31, 4 October 2013