PageSourceSearch

https://www.aimn.co.nz/cdn/shop/t/132/assets/product-badges-all.js?v=23222749825698793391790672546

js aimn.co.nz collected 2026-10-04 13:28:32 UTC 1,604 bytes, 2 lines download raw bytes

1window.addEventListener("load",()=>{setTimeout(()=>{const storeBadges=Array.from(document.querySelectorAll(".store-badges .badge")),_discRaw=window.theme&&window.theme.settings&&window.theme.settings.nostoListDiscountBadgeMetaobjectGid,discountBadgeId=typeof _discRaw=="string"?_discRaw.trim():"";document.querySelectorAll("[data-product-badges]").forEach(nostoEl=>{nostoEl.style.paddingTop="15px";const nostoImagesEl=nostoEl.querySelector(".nosto-product-images"),nostoListParent=nostoEl.closest(".nosto-list");nostoListParent&&(nostoListParent.style.marginTop="-15px");let productBadgeIds;try{let raw=nostoEl.getAttribute("data-product-badges").replace(/"/g,'"');raw.trim().startsWith("[")||(raw=`[${raw}]`),productBadgeIds=JSON.parse(raw)}catch(e){console.warn("Failed to parse data-product-badges",e),productBadgeIds=[]}const newPriceEl=nostoEl.querySelector(".nosto-newprice"),oldPriceEl=nostoEl.querySelector(".nosto-oldprice"),isDiscounted=newPriceEl&&oldPriceEl;if(productBadgeIds.forEach(prodId=>{const cleanId=prodId.replace(/^"|"$/g,""),matchingBadge=storeBadges.find(badge=>badge.getAttribute("data-badge-id")===cleanId);if(matchingBadge){const badgeClone=matchingBadge.cloneNode(!0);nostoImagesEl.appendChild(badgeClone)}}),isDiscounted&&discountBadgeId){const discountBadge=storeBadges.find(badge=>badge.getAttribute("data-badge-id")===discountBadgeId);if(discountBadge){const discountBadgeClone=discountBadge.cloneNode(!0);nostoImagesEl.appendChild(discountBadgeClone)}}})},2e3)});
2//# sourceMappingURL=/cdn/shop/t/132/assets/product-badges-all.js.map?v=23222749825698793391790672546

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.