Answer the question
In order to leave comments, you need to log in
Why can Google maps break some jQuery functions?
The site has a mobile menu "sandwich", shown on mobile resolutions. By clicking on the icon, a block with menu items opens. Everything is insanely simple. The code:
//Mobile nav
$('.hamburger').click(function(e){
$(this).toggleClass('is-active');
$('body').toggleClass('mobile-nav-opened');
$('.header-input-mobile').removeClass('header-input-mobile-active');
$('.header-search-mobile').removeClass('header-search-mobile-active');
$('.header-search-mobile').toggleClass('header-search-mobile-disable');
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question