PageSourceSearch

https://lifespan.io/wp-content/cache/autoptimize/js/autoptimize_single_b46fe1e5c4fdd7058ab1855a3c2650b9.js

js lifespan.io collected 2026-10-02 04:58:34 UTC 12,049 bytes, 42 lines download raw bytes

1var $j=jQuery.noConflict();$j(document).ready(function(){"use strict";sheHeader();sheAnchorOffset();sheBackToTop();var sheResizeTimer;$j(window).on('resize',function(e){clearTimeout(sheResizeTimer);sheResizeTimer=setTimeout(function(){sheHeader(e);sheAnchorOffset();},150);});var sheAnchorTicking=false;$j(window).on('scroll',function(){if(!sheAnchorTicking){sheAnchorTicking=true;window.requestAnimationFrame(function(){sheAnchorOffset();sheAnchorTicking=false;});}});});function sheHeader(e){$j('.elementor-element.she-header-yes').each(function(sheIndex){var header=$j(this),container=header.find('.elementor-container').add(header.filter('.e-con')),header_elementor=header.closest('.elementor-edit-mode').length?header:$j(),header_logo=header.find('.elementor-widget-theme-site-logo img:not(.elementor-widget-n-menu img), .elementor-widget-image img:not(.elementor-widget-n-menu img)'),header_logo_div=header.find('.elementor-widget-theme-site-logo a, .elementor-widget-image a'),data_settings=header.data('settings');if(typeof data_settings!='undefined'){var responsive_settings=data_settings["transparent_on"];var width=$j(window).width(),header_height=header.height(),logo_width=header_logo.width(),logo_height=header_logo.height();}
2if(typeof width!='undefined'&&width){if(width>=1025){var enabled="desktop";}else if(width>767&&width<1025){var enabled="tablet";}else if(width<=767){var enabled="mobile";}}
3if($j.inArray(enabled,responsive_settings)!==-1){var scroll_distance=data_settings["scroll_distance"];var she_offset=data_settings["she_offset_top"];var she_padding=data_settings["she_padding"];var she_width=data_settings["she_width"];var transparent_header=data_settings["transparent_header_show"];var background=data_settings["background"];var bottom_border_color=data_settings["custom_bottom_border_color"],bottom_border_view=data_settings["bottom_border"],bottom_border_width=data_settings["custom_bottom_border_width"];var shrink_header=data_settings["shrink_header"],data_height=data_settings["custom_height_header"],data_height_tablet=data_settings["custom_height_header_tablet"],data_height_mobile=data_settings["custom_height_header_mobile"];var shrink_logo=data_settings["shrink_header_logo"],data_logo_height=data_settings["custom_height_header_logo"],data_logo_height_tablet=data_settings["custom_height_header_logo_tablet"],data_logo_height_mobile=data_settings["custom_height_header_logo_mobile"];var change_logo_color=data_settings["change_logo_color"];var blur_bg=data_settings["blur_bg"];var scroll_distance_hide_header=data_settings["scroll_distance_hide_header"];if(width>=1025){she_offset=data_settings["she_offset_top"];she_padding=data_settings["she_padding"];she_width=data_settings["she_width"];}else if(width>767&&width<1025){she_offset=data_settings["she_offset_top_tablet"];she_padding=data_settings["she_padding_tablet"];she_width=data_settings["she_width_tablet"];}else if(width<=767){she_offset=data_settings["she_offset_top_mobile"];she_padding=data_settings["she_padding_mobile"];she_width=data_settings["she_width_mobile"];}
4if(header.hasClass("she-header")){if(e?.type==='resize'){header.css("width",she_width.size+she_width.unit);header.css("padding-top",she_padding.top+she_padding.unit);header.css("padding-bottom",she_padding.bottom+she_padding.unit);header.css("padding-left",she_padding.left+she_padding.unit);header.css("padding-right",she_padding.right+she_padding.unit);}}
5if(transparent_header=="yes"){header.addClass('she-header-transparent-yes');}
6if(typeof data_height!="undefined"&&data_height){if(width>=1025){var shrink_height=data_height["size"];}else if(width>767&&width<1025){var shrink_height=data_height_tablet["size"];if(shrink_height==""){shrink_height=data_height["size"];}}else if(width<=767){var shrink_height=data_height_mobile["size"];if(shrink_height==""){shrink_height=data_height["size"];}}}
7if(typeof data_logo_height!="undefined"&&data_logo_height){if(width>=1025){var shrink_logo_height=data_logo_height["size"];}else if(width>767&&width<1025){var shrink_logo_height=data_logo_height_tablet["size"];}else if(width<=767){var shrink_logo_height=data_logo_height_mobile["size"];}
8if(shrink_logo_height==""){shrink_logo_height=data_logo_height["size"];
8if(shrink_logo_height==""){shrink_logo_height=shrink_height;var percent=parseInt(shrink_logo_height)/parseInt(header_height),width_l=logo_width*percent,height_l=logo_height*percent;}else{var width_l=(logo_width*shrink_logo_height)/100,height_l=(logo_height*shrink_logo_height)/100;}}else{var width_l=(logo_width*shrink_logo_height)/100,height_l=(logo_height*shrink_logo_height)/100;}}
9if(typeof bottom_border_width!='undefined'&&bottom_border_width){var bottom_border=bottom_border_width["size"]+"px solid "+bottom_border_color;}
10if(typeof scroll_distance_hide_header!="undefined"&&scroll_distance_hide_header){var mywindow=$j(window),mypos=mywindow.scrollTop();mywindow.off('scroll.sheHide'+sheIndex).on('scroll.sheHide'+sheIndex,function(){var sd_hh_s=scroll_distance_hide_header["size"],sd_hh_u=scroll_distance_hide_header["unit"],sd_hh_tablet=data_settings["scroll_distance_hide_header_tablet"],sd_hh_tablet_s=sd_hh_tablet["size"],sd_hh_tablet_u=sd_hh_tablet["unit"],sd_hh_mobile=data_settings["scroll_distance_hide_header_mobile"],sd_hh_mobile_s=sd_hh_mobile["size"],sd_hh_mobile_u=sd_hh_mobile["unit"];if(typeof scroll_distance_hide_header!="undefined"&&scroll_distance_hide_header){if(width>=1025){var sd_hh=sd_hh_s,sd_hh_u=sd_hh_u;if(sd_hh_u=="vh"){sd_hh=window.innerHeight*(sd_hh/100);}}else if(width>767&&width<1025){var sd_hh=sd_hh_tablet_s,sd_hh_u=sd_hh_tablet_u;if(sd_hh==""){sd_hh=sd_hh_s;}
11if(sd_hh_u=="vh"){sd_hh=window.innerHeight*(sd_hh/100);}}else if(width<=767){var sd_hh=sd_hh_mobile_s,sd_hh_u=sd_hh_mobile_u;if(sd_hh==""){sd_hh=sd_hh_s;}
12if(sd_hh_u=="vh"){sd_hh=window.innerHeight*(sd_hh/100);}}}
13if(mypos>sd_hh){if(mywindow.scrollTop()>mypos){header.addClass("headerup");}else{header.removeClass("headerup");}}
14mypos=mywindow.scrollTop();});}
15var she_scroll_ticking=false;$j(window).off("load.sheScroll"+sheIndex+" scroll.sheScroll"+sheIndex).on("load.sheScroll"+sheIndex+" scroll.sheScroll"+sheIndex,function(e){if(she_scroll_ticking){return;}
16she_scroll_ticking=true;requestAnimationFrame(function(){she_scroll_ticking=false;var scroll=$j(window).scrollTop();if(header_elementor.length){header_elementor.css("position","relative");}
17var sd_s=scroll_distance["size"],sd_u=scroll_distance["unit"],sd_tablet=data_settings["scroll_distance_tablet"],sd_tablet_s=sd_tablet["size"],sd_tablet_u=sd_tablet["unit"],sd_mobile=data_settings["scroll_distance_mobile"],sd_mobile_s=sd_mobile["size"],sd_mobile_u=sd_mobile["unit"];if(typeof scroll_distance!="undefined"&&scroll_distance){if(width>=1025){var sd=sd_s,sd_u=sd_u;if(sd_u=="vh"){sd=window.innerHeight*(sd/100);}}else if(width>767&&width<1025){var sd=sd_tablet_s,sd_u=sd_tablet_u;if(sd==""){sd=sd_s;}
18if(sd_u=="vh"){sd=window.innerHeight*(sd/100);}}else if(width<=767){var sd=sd_mobile_s,sd_u=sd_mobile_u;if(sd==""){sd=sd_s;}
19if(sd_u=="vh"){sd=window.innerHeight*(sd/100);}}}
20if(scroll>=sd){header.removeClass('header').addClass("she-header");header.css("background-color",background);header.css("border-bottom",bottom_border);if(!header.attr("data-she-multi-mode")){header.css("top",she_offset.size+she_offset.unit);if(width>=783&&document.body.classList.contains('admin-bar')){if(she_offset.unit==='px'){header.css("top",(32+she_offset.size)+"px");}else{header.css("top","calc(32px + "+she_offset.size+she_offset.unit+")");}}
21header.css("padding-top",she_padding.top+she_padding.unit);header.css("padding-bottom",she_padding.bottom+she_padding.unit);header.css("padding-left",she_padding.left+she_padding.unit);header.css("padding-right",she_padding.right+she_padding.unit);header.css("width",she_width.size+she_width.unit);}
22header.removeClass('she-header-transparent-yes');if(shrink_header=="yes"){header.css({"padding-top":"0","padding-bottom":"0","margin-top":"0","margin-bottom":"0"});container.css({"min-height":shrink_height,"transition":"all 0.4s ease-in-out","-webkit-transition":"all 0.4s ease-in-out","-moz-transition":"all 0.4s ease-in-out"});}
23if(change_logo_color=="yes"){header_logo.addClass("change-logo-color");}
24if(shrink_logo=="yes"){header_logo.css({width:width_l,transition:"all 0.4s ease-in-out","-webkit-transition":"all 0.4s ease-in-out","-moz-transition":"all 0.4s ease-in-out",});}}else{header.removeClass("she-header").addClass('header');header.css("background-color","");header.css("border-bottom","");if(!header.attr("data-she-multi-mode")){header.css("top","");header.css("padding-top","");header.css("padding-bottom","");header.css("padding-left","");header.css("padding-right","");header.css("width","");}
25if(transparent_header=="yes"){header.addClass('she-header-transparent-yes');}
26if(shrink_header=="yes"){header.css({"padding-top":"","padding-bottom":"","margin-top":"","margin-bottom":""});container.css("min-height","");}
27if(shrink_logo=="yes"){header_logo.css({height:"",width:""});}
28if(change_logo_color=="yes"){header_logo.removeClass("change-logo-color");}}});});}});};function sheAnchorOffset(){var html=document.documentElement;var $header=$j('.elementor-element.she-header-yes').filter(function(){var s=$j(this).data('settings')||{};return s.she_anchor_offset==='yes';}).first();if(!$header.length){html.style.scrollPaddingTop='';html.style.scrollBehavior='';return;}
29var s=$header.data('settings')||{};var extra=0;if(s.she_anchor_offset_extra&&s.she_anchor_offset_extra.size!==''&&typeof s.she_anchor_offset_extra.size!=='undefined'){extra=parseFloat(s.she_anchor_offset_extra.size)||0;}
30var headerHeight=$header.outerHeight()||0;html.style.scrollPaddingTop=(headerHeight+extra)+'px';var prefersReduced=window.matchMedia&&window.matchMedia('(prefers-reduced-motion: reduce)').matches;if(s.she_anchor_smooth==='yes'&&!prefersReduced){html.style.scrollBehavior='smooth';}else{html.style.scrollBehavior='';}}
31function sheBackToTop(){if(document.querySelector('.she-totop-btn')){return;}
32var $header=$j('.elementor-element.she-header-yes').filter(function(){var s=$j(this).data('settings')||{};return s.she_totop_enable==='yes';}).first();if(!$header.length){return;}
33var s=$header.data('settings')||{};var threshold=sheSliderNum(s.she_totop_display_after,300);var btn=document.createElement('button');btn.type='button';btn.className='she-totop-btn';btn.setAttribute('aria-label','Back to top');btn.innerHTML='<svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M12 8.29l-6.29 6.3 1.41 1.41L12 11.12l4.88 4.88 1.41-1.41z"></path></svg>';var offset=sheSliderNum(s.she_totop_offset,24);btn.style.bottom=offset+'px';if(s.she_totop_position==='left'){btn.style.left=offset+'px';btn.style.right='auto';}else{btn.style.right=offset+'px';btn.style.left='auto';}
34var size=sheSliderNum(s.she_totop_size,44);btn.style.width=size+'px';btn.style.height=size+'px';if(s.she_totop_radius&&s.she_totop_radius.size!==''&&typeof s.she_totop_radius.size!=='undefined'){btn.style.borderRadius=s.she_totop_radius.size+(s.she_totop_radius.unit||'px');}
35if(s.she_totop_bg){btn.style.backgroundColor=s.she_totop_bg;}
36if(s.she_totop_icon_color){btn.style.color=s.she_totop_icon_color;}
37if(s.she_totop_bg_hover){btn.style.setProperty('--she-totop-hover',s.she_totop_bg_hover);}
38document.body.appendChild(btn);btn.addEventListener('click',function(){var prefersReduced=window.matchMedia&&window.matchMedia('(prefers-reduced-motion: reduce)').matches;window.scrollTo({top:0,behavior:prefersReduced?'auto':'smooth'});});var ticking=false;function toggle(){var y=window.pageYOffset||document.documentElement.scrollTop;if(y>threshold){btn.classList.add('she-totop-visible');}else{btn.classList.remove('she-totop-visible');}
39ticking=false;}
40$j(window).on('scroll',function(){if(!ticking){ticking=true;window.requestAnimationFrame(toggle);}});toggle();}
41function sheSliderNum(ctrl,fallback){if(ctrl&&ctrl.size!==''&&typeof ctrl.size!=='undefined'){var n=parseFloat(ctrl.size);if(!isNaN(n)){return n;}}
42return fallback;}

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.