PageSourceSearch

https://www.aladdinx.jp/cdn/shop/t/55/assets/main-product.js?v=71168426497583567491765173245

js aladdinx.jp collected 2026-10-01 11:42:38 UTC 3,777 bytes, 2 lines download raw bytes

1(function(){const initProductAccordion=()=>{const aboutToggleItems=$(".about__accordion-toggle");aboutToggleItems.each(function(){const currentToggle=$(this),siblingToggles=currentToggle.siblings(".about__accordion-description");currentToggle.click(function(){currentToggle.hasClass("active")?(currentToggle.removeClass("active"),siblingToggles.stop().slideUp(300)):(aboutToggleItems.each(function(){const siblingToggle=$(this);siblingToggle.removeClass("active"),siblingToggle.siblings(".about__accordion-description").stop().slideUp(300)}),currentToggle.addClass("active"),siblingToggles.stop().slideDown(300))})})},initZoomImage=()=>{const imagesWrapper=document.querySelector(".product-media-modal__content");(imagesWrapper?.querySelectorAll(".js-image-zoom")||[]).forEach(el=>{el.addEventListener("click",e=>{imagesWrapper.classList.toggle("zoom")})})},formatFreeShippingAmount=value=>{const placeholderRegex=/\{\{\s*(\w+)\s*\}\}/;return theme.moneyFormat.replace(placeholderRegex,value)},setTotalFreeShipping=()=>{if(document.querySelector(".js-free-shipping")){const freeShippingTotal=document.querySelector(".free-shipping-total");if(freeShippingTotal){const minSpend=Number(freeShippingTotal.dataset.minSpend);minSpend&&minSpend>0&&(freeShippingTotal.innerText=`${formatFreeShippingAmount(Math.round(minSpend*(Shopify.currency.rate||1)))}`)}}};function changeIconsViewBox(){document.querySelectorAll(".text_with_icon").forEach(item=>{item.querySelectorAll(".icon-pack").forEach(icon=>{icon.setAttribute("viewBox","0 0 20 20")})})}function navigationInit(){const navigation=document.querySelector(".product__media_navigation");navigation&&(navigation.style.transform="translateX(-50%) translateY(calc(100% + 16px))");let boundEventListeners=new Map;const getNavigationSections=()=>{const navigationItems=document.querySelectorAll(".product__media_navigation-item"),sections=[];return navigationItems.forEach(item=>{const target=item.getAttribute("data-target");target&&sections.push({sectionSelector:target.replace("-link",""),linkSelector:`#${item.id}`,linkElement:item})}),sections};getNavigationSections().forEach(section=>{if(section&&!boundEventListeners.has(section.linkElement)){const em=document.querySelector(`${section.sectionSelector}`);if(em){const clickHandler=()=>{const elementPosition=em.offsetTop-68;window.scrollTo({top:elementPosition,behavior:"smooth"})};section.linkElement.addEventListener("click",clickHandler),boundEventListeners.set(section.linkElement,clickHandler)}}}),document.addEventListener("scroll",()=>{if(navigation&&navigation.classList.add("show-navigation"),navigation){const footer=document.querySelector(".footer"),navigationHeight=navigation.offsetHeight,secondSection=document.querySelectorAll("#MainContent .shopify-section")[1],screen=window.scrollY;if(getNavigationSections().forEach((section,i)=>{if(section){const em=document.querySelector(`${section.sectionSelector}`);if(em){const rect=em.getBoundingClientRect();rect.top<=1&&rect.top>rect.height*-1?section.linkElement.classList.add("active"):section.linkElement.classList.remove("active")}}}),secondSection){const isSecondSectionScrolled=secondSection.getBoundingClientRect().top<0,isNearFooter=window.innerHeight+screen-navigationHeight>footer.offsetTop;navigation.style.transform=isSecondSectionScrolled&&!isNearFooter?"translateX(-50%) translateY(0)":"translateX(-50%) translateY(calc(100% + 16px))"}}})}document.addEventListener("shopify:section:load",function(){initProductAccordion(),initZoomImage(),setTotalFreeShipping(),changeIconsViewBox(),navigationInit()}),navigationInit(),initProductAccordion(),initZoomImage(),setTotalFreeShipping(),changeIconsViewBox()})();
2//# sourceMappingURL=/cdn/shop/t/55/assets/main-product.js.map?v=71168426497583567491765173245

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.