| Server IP : 194.30.32.123 / Your IP : 216.73.216.89 Web Server : Apache System : Linux 4f6650a08421 5.10.0-44-amd64 #1 SMP Debian 5.10.257-1 (2026-05-27) x86_64 User : ftpbegirale ( 1001) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,curl_multi_exec,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /expert/htwebs/www.begirale.com/public/wp-content/themes/genesis/lib/js/ |
Upload File : |
/**
* This script adds keyboard accessibility to a drop down menu.
*
* @since 2.2.0
*
* need the following css to make it work:
*
* .menu .menu-item:focus {
* position: static;
* }
*
* .menu .menu-item > a:focus + ul.sub-menu,
* .menu .menu-item.sfHover > ul.sub-menu {
* left: auto;
* opacity: 1;
* }
*
* @package Genesis\JS
* @author StudioPress
* @license GPL-2.0+
*/
var genesis_drop_down_menu = ( function( $ ) {
'use strict';
/**
* Add class to menu item on hover.
*
* @since 2.2.0
*/
var menuItemEnter = function() {
$( this ).addClass( 'genesis-hover' );
},
/**
* Remove a class when focus leaves menu item.
*
* @since 2.2.0
*/
menuItemLeave = function() {
$( this ).removeClass( 'genesis-hover' );
},
/**
* Toggle menu item class when a link fires a focus or blur event.
*
* @since 2.2.0
*/
menuItemToggleClass = function() {
$( this ).parents( '.menu-item' ).toggleClass( 'genesis-hover' );
},
/**
* Bind behaviour to events.
*
* @since 2.2.0
*/
ready = function() {
$( '.menu li' )
.on( 'mouseenter.genesis-hover', menuItemEnter )
.on( 'mouseleave.genesis-hover', menuItemLeave )
.find( 'a' )
.on( 'focus.genesis-hover blur.genesis-hover', menuItemToggleClass );
};
// Only expose the ready function to the world.
return {
ready: ready
};
})( jQuery );
jQuery( genesis_drop_down_menu.ready );