PageSourceSearch

https://shoppinkblush.com/cdn/shop/t/16/assets/hp-features.js?v=8073192904070891631790278503

js shoppinkblush.com collected 2026-10-03 23:21:50 UTC 3,693 bytes, 1 lines download raw bytes

1"use strict";!function(){function t(t){return Array.prototype.slice.call(t)}function e(e,a){a.forEach(function(a){var i=a.cloneNode(!0);i.classList.add("is-clone"),i.setAttribute("aria-hidden","true"),t(i.querySelectorAll("a, button")).forEach(function(t){t.setAttribute("tabindex","-1")}),e.appendChild(i)})}function a(t){var e=t.naturalWidth,a=t.naturalHeight;if(e&&a){var i=window.matchMedia&&window.matchMedia("(max-width: 749px)").matches,r=i?2100:4e3,n=i?130:180,o=i?40:52,s=e/a,l=Math.sqrt(r*s),d=l/s;l>n&&(d=(l=n)/s),d>o&&(l=(d=o)*s),t.style.width=Math.round(l)+"px",t.style.height=Math.round(d)+"px"}}function i(e){t(e.querySelectorAll(".hp-features__logo")).forEach(function(t){t.naturalWidth&&t.naturalHeight?a(t):t.addEventListener("load",function(){a(t)})})}function r(a){var r=a.querySelector(".hp-features__viewport"),n=a.querySelector(".hp-features__track");if(r&&n&&"1"!==n.getAttribute("data-hpf-ready")){n.setAttribute("data-hpf-ready","1");var o=t(n.querySelectorAll(".hp-features__item"));if(o.length){var s,l=window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches,d=o,u=1,c=!1,h=null,f="false"!==a.getAttribute("data-hpf-autoplay"),p=null,m=L("hp-features__arrow--prev","Scroll logos left",-1),w=L("hp-features__arrow--next","Scroll logos right",1);i(n),g(),window.setTimeout(function(){i(n),g()},500),window.addEventListener("load",function(){i(n),g()}),window.addEventListener("resize",function(){clearTimeout(s),s=setTimeout(function(){i(n),g()},200)})}else a.innerHTML=""}function y(){if(a.classList.contains("is-marquee")){var t,e=(t=window.getComputedStyle(n),(n.scrollWidth-(parseFloat(t.paddingLeft)||0)-(parseFloat(t.paddingRight)||0))/u);e<=0||(a.style.setProperty("--hpf-distance",-e+"px"),a.style.setProperty("--hpf-duration",Math.max(e/40,8)+"s"))}}function v(t){c=t,a.classList.toggle("is-paused",c),h&&(h.setAttribute("aria-pressed",c?"true":"false"),h.setAttribute("aria-label",c?"Play the logo strip":"Pause the logo strip"))}function L(t,e,i){var n=document.createElement("button");return n.type="button",n.className="hp-features__arrow "+t,n.setAttribute("aria-label",e),n.innerHTML='<span aria-hidden="true"></span>',n.addEventListener("click",function(){var t,e,a,n,o,s;t=Math.round(.8*r.clientWidth)*i,e=r.scrollLeft,a=r.scrollWidth-r.clientWidth,n=Math.max(0,Math.min(e+t,a)),o=null,s=p={},window.requestAnimationFrame?window.requestAnimationFrame(function t(a){if(p===s){o||(o=a);var i=Math.min((a-o)/450,1),l=i<.5?2*i*i:(4-2*i)*i-1;r.scrollLeft=e+(n-e)*l,i<1&&window.requestAnimationFrame(t)}}):r.scrollLeft=n}),a.appendChild(n),n}function g(){var o;f&&!l?(a.classList.contains("is-marquee")||(a.classList.add("is-marquee"),a.classList.remove("is-static"),r.scrollLeft=0,function(){for(;u<2||n.scrollWidth<2*r.clientWidth&&u<10;)e(n,d),u++,i(n)}(),h||((h=document.createElement("button")).type="button",h.className="hp-features__toggle",h.setAttribute("aria-pressed","false"),h.setAttribute("aria-label","Pause the logo strip"),h.innerHTML='<span aria-hidden="true"></span>',h.addEventListener("click",function(){v(!c)}),a.appendChild(h)),v(!1)),y()):(a.classList.remove("is-marquee"),a.classList.add("is-static"),a.style.removeProperty("--hpf-distance"),a.style.removeProperty("--hpf-duration"),t(n.querySelectorAll(".hp-features__item.is-clone")).forEach(function(t){t.parentNode.removeChild(t)}),u=1,h&&(h.parentNode.removeChild(h),h=null)),o=!a.classList.contains("is-marquee")&&r.scrollWidth-r.clientWidth>1,m.hidden=!o,w.hidden=!o}}function n(){for(var e=t(document.querySelectorAll(".hp-features")),a=0;a<e.length;a++)r(e[a])}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",n):n()}();

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.