PageSourceSearch

https://www.highcharts.com/blog/wp-content/plugins/wordpress-plugi…/build/scrolling-logos/view.js

js highcharts.com collected 2026-09-24 07:27:54 UTC 4,414 bytes, 1 lines download raw bytes

1(()=>{"use strict";const t="data-track-clone",e="data-logo-duplicate",r="data-logo-original-margin",n=t=>{t.style.paddingInlineStart="0",t.style.paddingLeft="0"},o=t=>{t.style.paddingInlineEnd="0",t.style.paddingRight="0"},l=t=>t.filter(t=>!t.hasAttribute(e)&&!t.classList.contains("block-list-appender")),a=(r,n)=>{r.querySelectorAll(`[${t}]`).forEach(t=>{t.remove()}),n.querySelectorAll(`[${e}]`).forEach(t=>{t.remove()})},i=i=>{const s=i.querySelector(".hs-scrolling-logos__viewport"),c=i.querySelector(".hs-scrolling-logos__marquee"),u=c?.querySelector("[data-track-source]");if(!s||!c||!u)return()=>{};a(c,u);let d=null;const p=(t=>{const e=l(Array.from(t.querySelectorAll(":scope > [data-block]")));if(e.length>0)return e;const r=l(Array.from(t.querySelectorAll(".block-editor-block-list__layout > [data-block]")));return r.length>0?r:l((n=t.children,Array.from(n).filter(t=>t.nodeType===Node.ELEMENT_NODE)));var n})(u),g=s.offsetWidth;return 0===p.length||0===g?()=>{a(c,u)}:(d=window.requestAnimationFrame(()=>{d=null,p.forEach(t=>{const e=(t=>{if("undefined"==typeof window)return null;const e=t.querySelector(".wp-block-group__inner-container");if(!e)return null;const r=window.getComputedStyle(e),n=r.columnGap;if(n&&"normal"!==n&&"0px"!==n)return n;const o=r.rowGap;return o&&"normal"!==o&&"0px"!==o?o:"12px"})(t);var n;e&&(t.hasAttribute(r)||t.setAttribute(r,null!==(n=t.style.marginInlineEnd)&&void 0!==n?n:""),t.style.marginInlineEnd=e)});const l=new Map;p.forEach(t=>{const e=window.getComputedStyle(t),r=parseFloat(e.marginInlineEnd||e.marginRight||"0")||0;l.set(t,r)});const a=p[0],i=p[p.length-1];a&&n(a),i&&o(i);let s=u.scrollWidth,h=0;const m=[];for(;s<g&&h<20;){var w,y;const t=p[h%p.length],o=t.cloneNode(!0);o.setAttribute(e,"true"),o.setAttribute("aria-hidden","true"),o.removeAttribute(r),n(o);const a=null!==(w=t.parentElement)&&void 0!==w?w:u,i=a.querySelector(":scope > .block-list-appender");m.push({parent:a,clone:o,appender:i}),h+=1;const c=null!==(y=l.get(t))&&void 0!==y?y:0;s+=t.offsetWidth+c}m.forEach(({parent:t,clone:e,appender:r})=>{t.insertBefore(e,null!=r?r:null)});const b=u.cloneNode(!0);b.removeAttribute("data-track-source"),b.setAttribute(t,"true"),b.setAttribute("aria-hidden","true");const f=b.querySelector(":scope > .wp-block-group");f&&n(f);const A=Array.from(b.querySelectorAll(":scope > .wp-block-group")).at(-1);A&&o(A),c.appendChild(b)}),()=>{null!==d&&(window.cancelAnimationFrame(d),d=null),p.forEach(t=>{var e;if(!t.hasAttribute(r))return;const n=null!==(e=t.getAttribute(r))&&void 0!==e?e:"";n?t.style.marginInlineEnd=n:t.style.removeProperty("margin-inline-end"),t.removeAttribute(r)}),a(c,u)})},s=()=>{const t=Array.from(document.querySelectorAll(".hs-scrolling-logos"));if(0===t.length)return;let e=[];const r=()=>{e.forEach(t=>t()),e=t.map(t=>i(t))};r();let n=0,o=0;window.addEventListener("resize",()=>{window.clearTimeout(o),window.cancelAnimationFrame(n),o=window.setTimeout(()=>{n=window.requestAnimationFrame(r)},150)},{passive:!0}),t.forEach(t=>{const e=t.querySelector(".hs-scrolling-logos__pause-button"),r=e?.querySelector("[data-pause-button]"),n=t.querySelector(".hs-scrolling-logos__marquee"),o=t.querySelector(".hs-scrolling-logos__viewport");r&&n&&e&&o&&r.addEventListener("click",()=>{"true"===e.getAttribute("data-paused")?(n.style.animationPlayState="",e.setAttribute("data-paused","false"),r.setAttribute("aria-label","Pause scrolling"),o.setAttribute("aria-live","off"),r.innerHTML='\n\t\t\t\t\t<span class="hc-button-text">Pause</span>\n\t\t\t\t\t<svg class="hc-button-icon" width="12" height="12" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n\t\t\t\t\t\t<path d="M8 5V19M16 5V19" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n\t\t\t\t\t</svg>\n\t\t\t\t'):(n.style.animationPlayState="paused",e.setAttribute("data-paused","true"),r.setAttribute("aria-label","Resume scrolling"),o.setAttribute("aria-live","polite"),r.innerHTML='\n\t\t\t\t\t<span class="hc-button-text">Play</span>\n\t\t\t\t\t<svg class="hc-button-icon" width="12" height="12" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
1\n\t\t\t\t\t\t<path d="M5 3L19 12L5 21V3Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n\t\t\t\t\t</svg>\n\t\t\t\t')})})};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",s):s()})();

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.