Skip to content

Instantly share code, notes, and snippets.

@JudeRosario
Created November 29, 2019 06:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JudeRosario/6dbe2f98d64899c0a73e86fa2e523e2d to your computer and use it in GitHub Desktop.
Save JudeRosario/6dbe2f98d64899c0a73e86fa2e523e2d to your computer and use it in GitHub Desktop.
Private - Julian - mobile-menu-fix.js
var element = jQuery('.gt3_header_builder_burger_sidebar_component');
var sidebar = jQuery('.gt3_header_builder__burger_sidebar');
jQuery('.mobile-men-login').on('click',function(){
if (element.hasClass('active')) {
element.removeClass('active');
sidebar.removeClass('active');
jQuery('body').removeClass('active_burger_sidebar');
}else{
element.addClass('active');
sidebar.addClass('active');
jQuery('body').addClass('active_burger_sidebar');
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment