hello
Server : Apache System : Linux webm006.cluster103.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64 User : chryzalihi ( 621211) PHP Version : 8.3.31 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl Directory : /home/c/h/r/chryzalihi/www/wp-contentOLD/themes/longevity/js/ |
/**
* navigation.js
* @package Longevity
* Handles toggling the navigation menu for small screens.
*/
// Enable menu toggle for small screens.
( function( $ ) {
var body = $( 'body' ),
_window = $( window );
var $body = $('body');
imagesLoaded( $body, function() {
$body.addClass('loaded');
});
var nav = $( '#site-navigation' ), button, menu;
if ( ! nav ) {
return;
}
button = nav.find( '.menu-toggle' );
if ( ! button ) {
return;
}
// Hide button if menu is missing or empty.
menu = nav.find( '.nav-menu' );
if ( ! menu || ! menu.children().length ) {
button.hide();
return;
}
$( '.menu-toggle' ).on( 'click.longevity', function() {
nav.toggleClass( 'toggled-on' );
} );
} )( jQuery );