Template:Team:Berkeley/topnav.js
From 2013.igem.org
(Difference between revisions)
(3 intermediate revisions not shown) | |||
Line 8: | Line 8: | ||
} | } | ||
); | ); | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- |
Latest revision as of 01:39, 28 October 2013
$(window).scroll(function () {
if ($(window).scrollTop() > 289) { $('#main-nav').css('top', $(window).scrollTop() - 289); } else { $('#main-nav').css('top', 0); }
} );