Template:Team:KIT-Kyoto/mobile
From 2014.igem.org
(Difference between revisions)
Line 32: | Line 32: | ||
$(".accordion").removeClass('m-active'); | $(".accordion").removeClass('m-active'); | ||
}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 47: | 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();} | ||
Line 56: | Line 56: | ||
var num = $(".m-active h2 a").index(this); | var num = $(".m-active h2 a").index(this); | ||
var ac =$(".ac").eq(num); | var ac =$(".ac").eq(num); | ||
- | |||
if(ac.is(':hidden')){ | if(ac.is(':hidden')){ | ||
ac.slideDown(); | ac.slideDown(); |
Revision as of 16:07, 3 October 2014