Created
May 24, 2021 16:22
-
-
Save elicus/c919202a5fa89b0ef17c3efcf420c06b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
(function($){ | |
$('body').on('click', '.dfh-27-hamburger-icon', function(){ | |
$(".dfh-27-menu-row").toggleClass("dfh-27-menu"); | |
}); | |
$('body').on('click', '.dfh-27-close-icon', function(){ | |
$(".dfh-27-menu-row").toggleClass("dfh-27-menu"); | |
}); | |
if($(window).width() < 981){ | |
$('body').on('click touchstart', '.et-menu .menu-item-has-children > a', function() { | |
$(this).attr('href', '#/'); | |
$(this).parent().children(".sub-menu").toggleClass('dfh-show-menu-items'); | |
}); | |
} | |
})(jQuery); | |
jQuery(window).load(function(){ | |
jQuery('.dfh-27 a[href*="#"]:not([href="#"])').on('click', function(){ | |
jQuery(".dfh-27-menu-row").toggleClass("dfh-27-menu"); | |
}); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment