1(function(){const $window=$(window);function updateScrollMargin(){const $stickyHeader=$('.stickyHeader');var stickyHeaderHeight=$stickyHeader.outerHeight();$('.headerElementBlock h2[id], h3[id]').css('scroll-margin-top',stickyHeaderHeight);} 2function updateAiChatPosition(){var aiChatWrapper=$('.InlineAiChatBotButton').parents()[0];var aiChatModal=$('.InlineAiChatBotModal');if(!aiChatWrapper){return;} 3var isFixed=aiChatWrapper.style.position==='fixed';var marginValue=isFixed?'6px':'0';aiChatWrapper.style.marginInlineStart=marginValue;if(aiChatModal&&aiChatModal.length>0){aiChatModal[0].style.marginInlineStart=marginValue;}} 4function updateStickyHeader(){const $sellbox=$('#sellboxWrapper');const $button=$sellbox.find('.sellboxButtonWrapper');const $stickyHeader=$('.stickyHeader');const $stickyButtonWrapper=$('.stickyButtonWrapper');var $pageHeading=$('#h1Header');if($pageHeading.text()===''){return;} 5var isMobileViewport=isViewportMobile();if(isMobileViewport){$('.stickyHeader').addClass('d-none');return;} 6var showStickyHeader=false;var shouldAppendButton=false;showStickyHeader=$window.scrollTop()>$pageHeading.offset().top+$pageHeading.height();shouldAppendButton=$('.sellBox').length&&!$sellbox.hasClass('stickySellbox');updateAiChatPosition();updateScrollMargin();if(showStickyHeader){if(window.sellboxInitialized===true&&shouldAppendButton&&$stickyButtonWrapper.find('.sellboxButtonWrapper').length===0){var $cloned=$button.clone(true,true);$cloned.find('button.cta').show();$stickyButtonWrapper.append($cloned);} 7$stickyHeader.removeClass('d-none');}else{$stickyHeader.addClass('d-none');}} 8$window.on('scroll',updateStickyHeader);$window.on('resize',updateScrollMargin);$window.on('load',updateStickyHeader);$window.on('sellbox:initialized',updateStickyHeader);})();;;
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.