Team:Grenoble/script
From 2011.igem.org
(Difference between revisions)
Maxime.huet (Talk | contribs) |
Maxime.huet (Talk | contribs) |
||
Line 16: | Line 16: | ||
$(window).scroll(function () { | $(window).scroll(function () { | ||
var scrollPos = $(window).scrollTop(); | var scrollPos = $(window).scrollTop(); | ||
- | if (scrollPos > | + | if (scrollPos > 150) { |
$(".navigation").addClass("stickToTop"); | $(".navigation").addClass("stickToTop"); | ||
} else { | } else { |
Revision as of 20:18, 24 October 2011