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 ($(this).scrollTop() > 150) {top.fadeOut();}
+
                 if ($(".menu-active").scrollTop() > 150) {top.fadeOut();}
               else {top.fadeIn ();}
               else {top.fadeIn ();}
        });
        });

Revision as of 15:38, 3 October 2014