HEX
Server: LiteSpeed
System: Linux starfruit.7ho.st 3.10.0-962.3.2.lve1.5.88.el7.x86_64 #1 SMP Fri Sep 26 14:06:42 UTC 2025 x86_64
User: edtir (1699)
PHP: 7.4.33
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open
Upload Files
File: /home/edtir/public_html/metal-sanat.com/wp-content/plugins/codevz-plus/assets/js/mobile-nav.js
jQuery( function( $ ) {
	"use strict";

	Codevz_Plus.mobileFixedNav = function() {

		if ( $( window ).width() <= 768 ) {

			var mobileNav = $( '.xtra-fixed-mobile-nav' ),
				currentURL = window.location.href,
				currentURL = currentURL.indexOf( '?' ) >= 0 ? currentURL.split( '?' )[0] : currentURL,
				currentURL = currentURL.indexOf( '#' ) >= 0 ? currentURL.split( '#' )[0] : currentURL;
				currentURL = currentURL.replace( /\/$/, "" );

			if ( mobileNav.length ) {

				$( 'footer' ).css( 'margin-bottom', mobileNav.outerHeight() );

				mobileNav.find( 'a' ).each( function() {

					var $this = $( this );

					if ( $this.attr( 'href' ).replace( /\/$/, "" ) == currentURL ) {

						$this.addClass( 'xtra-active' );

					}

				});

				var mobileNavHeight = mobileNav.outerHeight();
				
				$( '.backtotop' ).css( 'margin-bottom', mobileNavHeight ).next( '.fixed_contact' ).css( 'margin-bottom', mobileNavHeight );


			}

		}

	};

	Codevz_Plus.mobileFixedNav();

});