Team:DTU-Denmark/kristian test header
From 2014.igem.org
(Difference between revisions)
Line 34: | Line 34: | ||
}); | }); | ||
}); | }); | ||
+ | |||
+ | $(window.scroll(function() { | ||
+ | if ($(this).scrollTop() > 100) { | ||
+ | $("#nav").css("position","fixed").css("top","0"); | ||
+ | } else { | ||
+ | $("#nav").css("position","absolute").css("bottom","0"); | ||
+ | } | ||
+ | }); | ||
}); | }); |
Revision as of 15:41, 13 September 2014