Template:Team:KIT-Kyoto/mobile
From 2014.igem.org
(Difference between revisions)
Line 31: | Line 31: | ||
$(".m_menu").css("display","none"); | $(".m_menu").css("display","none"); | ||
}else { | }else { | ||
- | $("#mobilemenu").addClass(' | + | $("#mobilemenu").addClass('menu-active'); |
$(".accordion").addClass('m-active'); | $(".accordion").addClass('m-active'); | ||
$(".ac").eq(0).show(); | $(".ac").eq(0).show(); | ||
Line 45: | Line 45: | ||
$(".m_menu").slideToggle(); | $(".m_menu").slideToggle(); | ||
}); | }); | ||
- | var top = $('. | + | var top = $('.menu-active'); |
$(window).scroll(function () { | $(window).scroll(function () { | ||
if ($(this).scrollTop() > 150) {top.fadeOut();} | if ($(this).scrollTop() > 150) {top.fadeOut();} |
Revision as of 15:31, 3 October 2014