Team:DTU-Denmark/Templates/StartPage
From 2013.igem.org
(Difference between revisions)
Line 51: | Line 51: | ||
- | + | // if (scroll_pos_above_menubar) { | |
- | + | // $(".navigation").addClass("stickToTop"); | |
+ | // } else { | ||
+ | // $(".navigation").removeClass("stickToTop"); | ||
+ | // } | ||
+ | |||
+ | if(scroll_pos_above_menubar){ | ||
+ | $(".navigation").offset({top: $(".whitebox.article").offset().top + $(".navigation")[0].height() }); | ||
} else { | } else { | ||
- | + | $(".navigation").offset({top: scrollPos}); | |
} | } | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
//if (scroll_pos_below_start_of_article){ //&& (scrollPos < $(document).height() - $(".navigation")[0].height() - 70)) { | //if (scroll_pos_below_start_of_article){ //&& (scrollPos < $(document).height() - $(".navigation")[0].height() - 70)) { |
Revision as of 19:13, 4 October 2013