PageSourceSearch

https://www.anca101.com/etc.clientlibs/platform/clientlibs/anca101…-498a53de678f4a74619d3a2c34cfd9c5-lc.min.js

js anca101.com collected 2026-10-09 00:25:23 UTC 5,804 bytes, 2 lines download raw bytes

1(()=>{function e(){return window.innerWidth<=991?document.querySelector(".mob-header")?.offsetHeight||0:document.querySelector(".header")?.offsetHeight||0}function t(t){if(!t)return;const n=e();window.scrollTo({top:t.offsetTop-n,behavior:"smooth"})}function n(){!function(){const e=document.querySelector(".header");if(e)if(window.innerWidth>=992){const t=e.offsetHeight;window.scrollY>=t?e.classList.add("sticky"):e.classList.remove("sticky")}else e.classList.remove("sticky")}(),function(){const e=document.querySelector(".mob-header"),t=document.querySelector(".mob-sticky"),n=document.querySelector(".amg-nav__toggle");if(window.innerWidth<=991){const o=e?.offsetHeight||0;n&&(n.style.display="flex"),t?.classList.toggle("sticky",window.scrollY>=o)}else t?.classList.remove("sticky"),n&&n.style.removeProperty("display")}()}function o(){const t=document.querySelectorAll(".amg-menu-link");function n(){const n=window.scrollY+e()+20;let o=null;t.forEach(e=>{const t=e.getAttribute("href");if(!t||!t.startsWith("#")||"#"===t)return;const c=document.querySelector(t);if(!c)return;const r=c.offsetTop,i=r+c.offsetHeight;n>=r&&n<i&&(o=e)}),t.forEach(e=>e.classList.remove("active")),o&&o.classList.add("active")}t.length&&(n(),window.addEventListener("scroll",n),window.addEventListener("resize",n))}console.log("Anca101 site clientlibs loaded"),window.addEventListener("scroll",n),window.addEventListener("resize",n),n(),document.querySelectorAll(".amg-menu-link").forEach(e=>{e.addEventListener("click",function(e){const n=this.getAttribute("href");n&&n.startsWith("#")&&(e.preventDefault(),t(document.querySelector(n)))})}),document.addEventListener("click",function(e){const n=e.target.closest(".mob-header .amg-nav__list li.amg-nav__list-item a");if(!n)return;const o=n.getAttribute("href");o&&o.startsWith("#")&&(e.preventDefault(),t(document.querySelector(o)))}),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",o):o(),(()=>{let e=!1;const t=[{svgId:"circle-eyes",slideIndex:0},{svgId:"circle-ears",slideIndex:1},{svgId:"circle-nose",slideIndex:2},{svgId:"circle-heart",slideIndex:3},{svgId:"circle-lungs",slideIndex:4},{svgId:"circle-stomach",slideIndex:5},{svgId:"circle-kidney-left",slideIndex:6},{svgId:"circle-kidney-right",slideIndex:6},{svgId:"circle-skin",slideIndex:7},{svgId:"circle-nervous-system",slideIndex:8},{svgId:"circle-general",slideIndex:9}];function n(e){t.forEach(e=>{const t=document.getElementById(e.svgId);t&&t.querySelectorAll("circle, ellipse").forEach(e=>{e.setAttribute("fill","transparent")})}),t.filter(t=>t.slideIndex===e).forEach(e=>{const t=document.getElementById(e.svgId);t&&t.querySelectorAll("circle, ellipse").forEach(e=>{e.setAttribute("fill","#ffffff")})})}function o(){const o=document.querySelector("amg-carousel-controls");o?(n((parseInt(o.getAttribute("current"),10)||1)-1),new MutationObserver(()=>{e||n((parseInt(o.getAttribute("current"),10)||1)-1)}).observe(o,{attributes:!0,attributeFilter:["current"]}),t.forEach(t=>{const c=document.getElementById(t.svgId);c&&(c.style.cursor="pointer",c.style.pointerEvents="all",c.addEventListener("click",()=>{window.dataLayer=window.dataLayer||[];const c={event:"e_contentClick",contentPosition:t.slideIndex+1,contentName:t.svgId.replace(/^circle-/,""),componentType:"carousel",clickAction:"circle click"};window.dataLayer.push(c),console.log("✅ dataLayer.push fired:",c),function(t,o){(parseInt(o.getAttribute("current"),10)||1)-1!==t?(e=!0,n(t),o.dispatchEvent(new CustomEvent("amg-item-change",{detail:{item:t+1},bubbles:!0,composed:!0})),requestAnimationFrame(()=>{requestAnimationFrame(()=>{e=!1,n((parseInt(o.getAttribute("current"),10)||1)-1)})})):n(t)}(t.slideIndex,o)}))}),console.log("✅ Human Body ↔ Carousel Sync Ready")):console.error("amg-carousel-controls not found")}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",o):o()})(),document.addEventListener("DOMContentLoaded",function(){window.addEventListener("scroll",function(){const e=document.querySelectorAll(".most-common-subtype, .hotspot-container, .when-managing"),t=document.querySelector(".best-advacate"),n=document.querySelector('.amg-menu-link[href="#what-aav"]'),o=document.querySelector('.amg-menu-link[href="#severe"]');let c=null;
1if(e.forEach(e=>{const t=e.getBoundingClientRect();t.top<=150&&t.bottom>=150&&(c=n)}),t){const e=t.getBoundingClientRect();e.top<=150&&e.bottom>=150&&(c=o)}c&&(document.querySelectorAll(".amg-menu-link").forEach(e=>e.classList.remove("active")),c.classList.add("active"))})}),document.addEventListener("DOMContentLoaded",function(){const e=window.location.pathname;(e.includes("/404")||e.includes("/500"))&&document.querySelectorAll(".amg-navbar__items .amg-menu-link[href^='#']").forEach(function(e){e.addEventListener("click",function(e){e.preventDefault();const t=this.getAttribute("href");window.location.href="/"+t})})}),document.addEventListener("DOMContentLoaded",function(){const e=window.location.hash;if(!e)return;const t=document.querySelector(e);t&&setTimeout(function(){const e=t.getBoundingClientRect().top+window.pageYOffset-80;window.scrollTo({top:e,behavior:"smooth"})},100)}),document.addEventListener("click",function(e){const t=e.target.closest(".sever-active-section-card .amg-stack");if(!t)return;const n=t.querySelector("a[data-micromodal-trigger]");if(!n)return;if(e.target.closest("a"))return;if("true"===t.dataset.trackingFired)return;t.dataset.trackingFired="true",window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"e_contentOpen",componentType:n.dataset.componentType,contentName:n.dataset.contentName}),setTimeout(()=>{delete t.dataset.trackingFired},500);const o=n.dataset.micromodalTrigger;o&&"undefined"!=typeof MicroModal&&MicroModal.show(o)})})();
2//# sourceMappingURL=clientlibs.js.map

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.