Template:Team:KIT-Kyoto/mobile
From 2014.igem.org
(Difference between revisions)
Line 50: | Line 50: | ||
var top = $('#mobilemenu'); | var top = $('#mobilemenu'); | ||
$(window).scroll(function () { | $(window).scroll(function () { | ||
- | if ($( | + | if ($(this).scrollTop() > 150) {top.fadeOut();} |
else {top.fadeIn ();} | else {top.fadeIn ();} | ||
}); | }); |
Revision as of 15:42, 3 October 2014