WS_OK_7.4.33 HEX
HEX
Server: nginx/1.21.4
System: Linux v12674 6.8.0-85-generic #85-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 18 15:26:59 UTC 2025 x86_64
User: endtheignorance (1014)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v12674/airalle/public_html/wp-content/themes/enfold/js/avia-snippet-sidebarmenu.js
(function($)
{
    "use strict";

    $( function()
    {
		// set sidebar main menu option
        avia_sidebar_menu();
    });


	function avia_sidebar_menu()
	{
		var win				= $(window),
			main			= $('#main'),
			sb_header		= $('.html_header_sidebar #header_main'),
            sidebar			= $('.html_header_sidebar #header.av_conditional_sticky');

        if( ! sb_header.length )
		{
			return;
		}
        // main.css({"min-height":sb_header.outerHeight()});

        if( ! sidebar.length )
		{
			return;
		}

        var innerSidebar	= $('#header_main'),
       	 	wrap			= $('#wrap_all'),
       	 	fixed_frame		= parseInt( $('.av-frame-top').height(), 10 ) * 2 || 0,
       	 	subtract 		= parseInt($('html').css('margin-top'), 10),
            calc_values 	= function()
            {
            	if( innerSidebar.outerHeight() + fixed_frame < win.height() )
				{
					sidebar.addClass('av_always_sticky');
				}
				else
				{
					sidebar.removeClass('av_always_sticky');
				}

				wrap.css({'min-height': win.height() - subtract});
            };

        calc_values();

        win.on( "debouncedresize av-height-change", calc_values );
	}

})(jQuery);