PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/mytube.pm/wp-content/themes/ultra/js/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : /home/trave494/mytube.pm/wp-content/themes/ultra/js/responsive-menu.js |
/** * File responsive-menu.js. * * Handles toggling the navigation menu for small screens and enables TAB key * navigation support for dropdown menus. */ ( function() { var container, button, menu; container = document.getElementById( 'site-navigation' ); if ( ! container ) { return; } button = container.getElementsByTagName( 'button' )[0]; if ( 'undefined' === typeof button ) { return; } menu = container.getElementsByTagName( 'ul' )[0]; // Hide menu toggle button if menu is empty and return early. if ( 'undefined' === typeof menu ) { button.style.display = 'none'; return; } menu.setAttribute( 'aria-expanded', 'false' ); if ( -1 === menu.className.indexOf( 'nav-menu' ) ) { menu.className += ' nav-menu'; } button.onclick = function() { if ( -1 !== container.className.indexOf( 'toggled' ) ) { container.className = container.className.replace( ' toggled', '' ); button.setAttribute( 'aria-expanded', 'false' ); menu.setAttribute( 'aria-expanded', 'false' ); } else { container.className += ' toggled'; button.setAttribute( 'aria-expanded', 'true' ); menu.setAttribute( 'aria-expanded', 'true' ); } }; } )(); ( function( $ ) { $( 'li[class*=children]' ).append( '<span></span>' ); $( 'li[class*=children]>span' ).click( function( e ) { $( this ).closest( 'li[class*=children]' ).toggleClass( 'up' ); return false; } ); $( '.menu-item-has-children > a' ).addClass( 'has-dropdown' ); $( '.page_item_has_children > a' ).addClass( 'has-dropdown' ); $( '.main-navigation' ).find( '.has-dropdown' ).click( function( e ) { if ( typeof $( this ).attr( 'href' ) === "undefined" || $( this ).attr( 'href' ) == "#" ) { e.preventDefault(); $( this ).siblings( 'li[class*=children]>span' ).trigger( 'click' ); } } ); $( 'nav a' ).on( 'click', function() { if ( ! $( this ).hasClass( 'has-dropdown' ) || ( typeof $( this ).attr( 'href' ) !== "undefined" && $( this ).attr( 'href' ) !== "#" ) ) { $( '.main-navigation' ).removeClass( 'toggled' ); } } ); $( window ).resize( function() { windowWidth = $( window ).width(); navigation = $( 'nav' ); isToggled = navigation.hasClass( 'toggled' ); if ( windowWidth > ultra_resp_menu_params.collapse && isToggled ) { navigation.removeClass( 'toggled' ); } } ); } )( jQuery );