HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ns3133907 6.8.0-86-generic #87-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 22 18:03:36 UTC 2025 x86_64
User: cssnetorguk (1024)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: //home/bristolfilton.co.uk/public_html/wp-content/themes/fastblog/js/functions.js
( function( $ ) {

	/**
	 * Wait for the document to load.
	 *
	 * @since 1.0.0
	 */
	$( document ).ready( function() {

		/**
		 * Handle the menu toggle click.
		 *
		 * @since 1.0.0
		 */
		$( '.primary-menu-toggle' ).on( 'click', function( e ) {
			$( '.primary-menu' ).slideToggle();
			e.preventDefault();
		} );

		/**
		 * Handle the window resize.
		 *
		 * @since 1.0.0
		 */
		$( window ).on( 'resize', function() {
			if ( 992 <= $( window ).width() ) {
				$( '.primary-menu' ).show();
				$( '.primary-menu-toggle' ).hide();
			} else {
				$( '.primary-menu' ).hide();
				$( '.primary-menu-toggle' ).show();
			}
		} );

	} );

}( jQuery ) );