Template:Team:KIT-Kyoto/mobile
From 2014.igem.org
(Difference between revisions)
Line 29: | Line 29: | ||
var mw = $(window).width(); | var mw = $(window).width(); | ||
if(mw >= 568){ | if(mw >= 568){ | ||
- | + | $("#mobilemenu").removeClass('menu-active').css("display","none"); | |
- | $("#mobilemenu").removeClass('menu-active'); | + | |
$(".accordion").removeClass('m-active'); | $(".accordion").removeClass('m-active'); | ||
}else { | }else { | ||
Line 48: | Line 47: | ||
$(".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:47, 3 October 2014