20 lines
686 B
JavaScript

jQuery(document).ready(function($){
$("#menu-toggle").click(function(e){
e.preventDefault()
$(this).parent().eq(0).toggleClass("active")
})
$("#custom-menu-2-focus").click(function(e){
e.preventDefault()
})
$("body").removeClass("loading")
$(".menu-item-has-children").click(function(){
$(this).toggleClass("active")
$(this).parent().parent().toggleClass("active")
})
$("#minimalistflex-menu-focus-hack").focus(function(){
$("#menu-toggle").focus()
})
$("#minimalistflex-menu-focus-hack-2").focus(function(){
$(".minimalistflex-menu").find(".menu-item:last").children("a").focus()
})
})