PageSourceSearch

https://didymos.jp/cdn/shop/t/45/assets/custom.js?v=137934989922088956001705309663

js didymos.jp collected 2026-10-04 00:23:52 UTC 3,162 bytes, 2 lines download raw bytes

1window.addEventListener("DOMContentLoaded",()=>{document.body.addEventListener("change",async e=>{const giftWrap=e.target.closest("#gift-wrap"),giftNote=e.target.closest("#gift-note");if(giftWrap){const value=giftWrap.value,id=giftWrap.querySelector(`[value="${value}"]`).dataset.id;await carsonToolkit.modules.cart.addProductById(id,1,{_giftwrap:1});const cart=await carsonToolkit.modules.cart.removeProductWhen(item=>item.id!=id&&item.properties?._giftwrap);await carsonToolkit.modules.cart.setAttribute("gift-wrapping",value),document.dispatchEvent(new Event("cart:build"))}else giftNote&&await carsonToolkit.modules.cart.setAttribute("gift-note",giftNote.value)}),document.body.addEventListener("click",e=>{const collabsible_btn=e.target.closest("article.hc-collapsible>*:first-child");collabsible_btn&&collabsible_btn.closest(".hc-collapsible").classList.toggle("hc-collapsed")});const isMatching=(text,matchWords)=>{for(const mword of matchWords)if(!text.includes(mword))return!1;return!0};document.body.addEventListener("input",e=>{const searchFaq=e.target.closest("#hc-faq-filter-input");searchFaq&&setTimeout(()=>{const term=searchFaq.value.trim().toLowerCase();document.querySelectorAll(".hc-faq-container .hc-faq-question").forEach(el=>{el.classList.toggle("hc-faq-hide",!isMatching(el.textContent.toLowerCase(),term.replace(/\s+/g,"|").split("|")))}),document.querySelectorAll(".hc-faq-container .index-section--faq").forEach(el=>{let nxt=el;for(;nxt=nxt.closest(".hc-faq-block").nextElementSibling?.querySelector(".hc-faq-question");)if(nxt.matches(".hc-faq-question:not(.hc-faq-hide)")){el.classList.toggle("hc-faq-hide",!1);return}el.classList.toggle("hc-faq-hide",!0)})})});class AccordionContainer{constructor(){this.container=document.createElement("div"),this.content=document.createElement("div"),this.container.classList.add("hc-faq--tab"),this.container.setAttribute("hc-accordion-tab",""),this.container.dataset.speed="0.2",this.content.classList.add("hc-faq--content"),this.content.setAttribute("hc-accordion-content","")}registerContent(header,...content){header.setAttribute("hc-accordion-header",""),this.container.append(header);const svg=carsonToolkit.ui.parseHTML('<svg aria-hidden="true" focusable="false" role="presentation" class="icon icon--wide icon-chevron-down" viewBox="0 0 28 16"><path d="M1.57 1.59l12.76 12.77L27.1 1.59" stroke-width="2" stroke="#000" fill="none" fill-rule="evenodd"></path></svg>')[0];header.append(svg),this.content.append(...content),this.container.append(this.content)}}carsonToolkit.ui.commentWrap("auto-faq",el=>{let accordionTabs=[],currentAccodion,currentElements=[];const finishTab=()=>{currentAccodion&&currentElements.length>1&&(currentAccodion.registerContent(...currentElements),accordionTabs.push(currentAccodion.container))};
1for(const child of[...el.children])child?.nodeName=="H3"?(finishTab(),currentAccodion=new AccordionContainer,currentElements=[child]):currentElements.push(child);finishTab(),console.log({accordionTabs}),el.classList.add("hc-faq--container"),el.append(...accordionTabs)})});
2//# sourceMappingURL=/cdn/shop/t/45/assets/custom.js.map?v=137934989922088956001705309663

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.