1(function($) 2{ 3 "use strict"; 4 5 $( function() 6 { 7 // set sidebar main menu option 8 avia_sidebar_menu(); 9 }); 10 11 12 function avia_sidebar_menu() 13 { 14 var win = $(window), 15 main = $('#main'), 16 sb_header = $('.html_header_sidebar #header_main'), 17 sidebar = $('.html_header_sidebar #header.av_conditional_sticky'); 18 19 if( ! sb_header.length ) 20 { 21 return; 22 } 23 // main.css({"min-height":sb_header.outerHeight()}); 24 25 if( ! sidebar.length ) 26 { 27 return; 28 } 29 30 var innerSidebar = $('#header_main'), 31 wrap = $('#wrap_all'), 32 fixed_frame = parseInt( $('.av-frame-top').height(), 10 ) * 2 || 0, 33 subtract = parseInt($('html').css('margin-top'), 10), 34 calc_values = function() 35 { 36 if( innerSidebar.outerHeight() + fixed_frame < win.height() ) 37 { 38 sidebar.addClass('av_always_sticky'); 39 } 40 else 41 { 42 sidebar.removeClass('av_always_sticky'); 43 } 44 45 wrap.css({'min-height': win.height() - subtract}); 46 }; 47 48 calc_values(); 49 50 win.on( "debouncedresize av-height-change", calc_values ); 51 } 52 53})(jQuery); 54
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.