PageSourceSearch

https://aaslh.org/wp-content/themes/Avada/includes/lib/assets/min/…/fusion-scroll-to-anchor.js?ver=3.16.1

js aaslh.org collected 2026-09-24 08:49:52 UTC 4,983 bytes, 1 lines download raw bytes

1function awbScrollToTarget(e,t){var o,n,a,i,s,r,u,l,c,h,f,g=jQuery("html").hasClass("ua-edge")||jQuery("html").hasClass("ua-safari-12")||jQuery("html").hasClass("ua-safari-11")||jQuery("html").hasClass("ua-safari-10")?"body":"html",y=jQuery(".fusion-tb-header").length,d=!1,p=!1;if(t=void 0!==t?t:0,e.length){if(e.closest(".awb-full-sections").length)return;return e.parents(".awb-off-canvas").length?0!==e.parents(".awb-off-canvas-wrap.awb-show").length&&(u=(r=e.parents(".awb-off-canvas-wrap.awb-show").find(".off-canvas-content"))[0].getBoundingClientRect().top,l=e[0].getBoundingClientRect().top,c=r.scrollTop(),i=l<u?c-(u-l):Math.abs(c+(l-u)),h=r[0].scrollHeight-r.outerHeight(),i>h&&(i=h),void r.animate({scrollTop:i},{duration:400})):(o=fusion.getAdminbarHeight(),a=jQuery(document).scrollTop(),y?(jQuery("body").addClass("fusion-scrolling-active"),(d=fusionGetStickyOffset())||(d=o),i=e.offset().top-d-t):(n="function"==typeof getStickyHeaderHeight?getStickyHeaderHeight():0,i=e.offset().top-o-n-t),s=Math.abs(a-i)/2,f=a>i?a-s:a+s,jQuery(g).animate({scrollTop:f},{duration:400,easing:"easeInExpo",complete:function(){o=fusion.getAdminbarHeight(),y?((d=fusionGetStickyOffset())||(d=o),i=Math.ceil(e.offset().top)-d-t):(n="function"==typeof getStickyHeaderHeight?getStickyHeaderHeight():0,i=Math.ceil(e.offset().top)-o-n-t),jQuery(g).animate({scrollTop:i},450,"easeOutExpo",function(){location.hash&&"#_"===location.hash.substring(0,2)&&"history"in window&&"replaceState"in history&&history.replaceState("",window.location.href.replace("#_","#"),window.location.href.replace("#_","#")),y&&((p=fusionGetStickyOffset())||(p=o),d!==p&&(i=Math.ceil(e.offset().top)-p-t,jQuery(g).animate({scrollTop:i},450)),jQuery("body").removeClass("fusion-scrolling-active"))})}}),(e.hasClass("tab-pane")||e.hasClass("tab-link"))&&"function"==typeof jQuery.fn.fusionSwitchTabOnLinkClick&&setTimeout(function(){e.parents(".fusion-tabs").fusionSwitchTabOnLinkClick()},100),!1)}}!function(e){"use strict";e.fn.fusion_scroll_to_anchor_target=function(t){var o=void 0!==e(this).attr("href")?e(this).attr("href"):e(this).data("link"),n=o.substr(o.indexOf("#")).slice(1),a=e("#"+n);""!==n&&awbScrollToTarget(a,t)}}(jQuery),jQuery(document).ready(function(){jQuery("body").on("click",'.fusion-menu a:not([href="#"], .panel-title a, .fusion-megamenu-widgets-container a, .search-link), .fusion-widget-menu a, .fusion-secondary-menu a, .fusion-mobile-nav-item a:not([href="#"], .search-link), .fusion-button:not([href="#"], input, button), .fusion-one-page-text-link:not([href="#"]), .fusion-content-boxes .fusion-read-more:not([href="#"]), .fusion-imageframe > .fusion-no-lightbox, .content-box-wrapper:not(.link-area-box) .heading-link, a.woocommerce-review-link, .awb-toc-el .awb-toc-el__item-anchor',function(e){var t,o,n,a,i,s,r,u,l=jQuery("body").hasClass("fusion-builder-live");if(jQuery(this).hasClass("avada-noscroll")||jQuery(this).parent().hasClass("avada-noscroll")||jQuery(this).is(".fusion-content-box-button, .fusion-tagline-button")&&jQuery(this).parents(".avada-noscroll").length)return!0;if(this.hash){if(r=jQuery(this).attr("target")?jQuery(this).attr("target"):"_self",a=(n=void 0!==(o=(t=jQuery(this).attr("href")).split("#"))[1]?o[1]:"").substring(0,1),s=(i=o[0]).substring(i.length-1,i.length),window.location.host!==this.host)return;if("#hubspot-open-chat"===t)return;if("#previousStep"===t||"#nextStep"===t)return;if(void 0!==(u=n.split("-"))[0]&&"tab"===u[0]&&jQuery(this).parents(".awb-menu__mega-wrap").length)return;if("/"!==s&&(i+="/"),"!"===a||"/"===a)return;e.preventDefault(),location.pathname.replace(/^\//,"")!=this.pathname.replace(/^\//,"")&&"#"!==t.charAt(0)||""!==location.search&&-1===location.search.indexOf("lang=")&&-1===location.search.indexOf("builder=")&&!jQuery(this).hasClass("tfs-scroll-down-indicator")&&!jQuery(this).hasClass("fusion-same-page-scroll")?l||t.includes("-oc__")||("/"===i&&""!==location.search&&(i=location.href.replace(location.search,"")),window.open(i+"#_"+n,r)):(jQuery(this).fusion_scroll_to_anchor_target(),"history"in window&&"replaceState"in history&&!l&&history.replaceState("",t,t),jQuery(this).closest(".awb-menu.flyout-submenu-expanded").length?jQuery(this).closest(".awb-menu.flyout-submenu-expanded").find(".awb-menu__flyout-close").trigger("click"):jQuery(this).closest(".fusion-flyout-menu").length?jQuery(".fusion-flyout-menu-toggle").trigger("click"):jQuery(this).closest(".fusion-megamenu-menu, .awb-menu__sub-ul").length&&jQuery(this).blur(),jQuery(this).closest(".awb-menu .awb-menu__mega-wrap").length&&jQuery(this).blur())}})}),location.hash&&"#_"===location.hash.substring(0,2)&&(jQuery(".fusion-page-load-link").attr("href",decodeURIComponent("#"+location.hash.substring(2))),jQuery(window).on("load",function(){jQuery(".fusion-blog-shortcode").length?setTimeout(function(){jQuery(".fusion-page-load-link").fusion_scroll_to_anchor_target()},300):jQuery(".fusion-page-load-link").fusion_scroll_to_anchor_target()}));

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.