Team:DTU-Denmark/kristian test header
From 2014.igem.org
(Difference between revisions)
(8 intermediate revisions not shown) | |||
Line 34: | Line 34: | ||
}); | }); | ||
}); | }); | ||
+ | |||
+ | $(window).scroll(function() { | ||
+ | if ($(this).scrollTop() > 50) { | ||
+ | $("#nav").css("position","fixed").css("top","0"); | ||
+ | } else { | ||
+ | $("#nav").css("position","absolute").css("bottom","0").css("top",""); | ||
+ | } | ||
+ | }); | ||
}); | }); | ||
Line 134: | Line 142: | ||
<a href="#top"><span></span></a> | <a href="#top"><span></span></a> | ||
</p> | </p> | ||
- | |||
<div style="background-color:gray;width:80%;height:2000px;margin:auto"> | <div style="background-color:gray;width:80%;height:2000px;margin:auto"> | ||
Line 141: | Line 148: | ||
</html> | </html> | ||
+ | {{:Template:Team:DTU-Denmark/footer}} |
Latest revision as of 16:21, 13 September 2014