/** * This script adds the accessibility-ready responsive menus Genesis Framework child themes. * * @author StudioPress * @link https://github.com/copyblogger/responsive-menus * @version 1.1.2 * @license GPL-2.0+ */ var genesisMenuParams=typeof genesis_responsive_menu==='undefined'?'':genesis_responsive_menu,genesisMenusUnchecked=genesisMenuParams.menuClasses,genesisMenus={},menusToCombine=[];(function(document,$,undefined){'use strict';$.each(genesisMenusUnchecked,function(group){genesisMenus[group]=[];$.each(this,function(key,value){var menuString=value,$menu=$(value);if($menu.length>1){$.each($menu,function(key,value){var newString=menuString+'-'+key;$(this).addClass(newString.replace('.',''));genesisMenus[group].push(newString);if('combine'===group){menusToCombine.push(newString)}})}else if($menu.length==1){genesisMenus[group].push(menuString);if('combine'===group){menusToCombine.push(menuString)}}})});if(typeof genesisMenus.others=='undefined'){genesisMenus.others=[]} if(menusToCombine.length==1){genesisMenus.others.push(menusToCombine[0]);genesisMenus.combine=null;menusToCombine=null} var genesisMenu={},mainMenuButtonClass='menu-toggle',subMenuButtonClass='sub-menu-toggle',responsiveMenuClass='genesis-responsive-menu';genesisMenu.init=function(){if($(_getAllMenusArray()).length==0){return} var menuIconClass=typeof genesisMenuParams.menuIconClass!=='undefined'?genesisMenuParams.menuIconClass:'dashicons-before dashicons-menu',subMenuIconClass=typeof genesisMenuParams.subMenuIconClass!=='undefined'?genesisMenuParams.subMenuIconClass:'dashicons-before dashicons-arrow-down-alt2',toggleButtons={submenu:$('