PageSourceSearch

https://lji.io/_site/_blog/PatentCycle.astro_astro_type_script_index_0_lang.DQ-kvegF.js

js lji.io collected 2026-10-03 20:16:38 UTC 1,572 bytes, 1 lines download raw bytes

1import{n as e}from"./motion.CqZNisNe.js";document.querySelectorAll(`[data-patent-cycle]`).forEach(t=>{let n=Array.from(t.querySelectorAll(`[data-patent-slide]`)),r=Array.from(t.querySelectorAll(`[data-patent-caption]`)),i=Array.from(t.querySelectorAll(`[data-patent-tab]`)),a=t.closest(`[data-proof-block]`)??t,o=Array.from(a.querySelectorAll(`[data-block-slide]`)),s=0,c=new Set([`offscreen`]),l=()=>t.toggleAttribute(`data-paused`,c.size>0),u=(e,t)=>{t?c.add(e):c.delete(e),l()};function d(e){s=e,n.forEach((t,n)=>t.classList.toggle(`is-active`,n===e)),r.forEach((t,n)=>t.classList.toggle(`is-active`,n===e)),o.forEach(t=>{let n=Number(t.dataset.blockSlide)===e;t.classList.toggle(`is-active`,n),n?t.removeAttribute(`aria-hidden`):t.setAttribute(`aria-hidden`,`true`)}),i.forEach((t,n)=>{t.dataset.state=n<e?`done`:n===e?`active`:`todo`,n===e?t.setAttribute(`aria-current`,`true`):t.removeAttribute(`aria-current`)});let t=i[e]?.querySelector(`.patents__fill`);t&&(t.style.animation=`none`,t.offsetWidth,t.style.animation=``)}t.addEventListener(`animationend`,e=>{e.target instanceof HTMLElement&&e.target.classList.contains(`patents__fill`)&&e.target.closest(`[data-patent-tab]`)===i[s]&&d((s+1)%n.length)}
1),i.forEach((e,t)=>e.addEventListener(`click`,()=>d(t))),a.addEventListener(`pointerenter`,e=>{e.pointerType===`mouse`&&u(`hover`,!0)}),a.addEventListener(`pointerleave`,()=>u(`hover`,!1)),a.addEventListener(`focusin`,()=>u(`focus`,!0)),a.addEventListener(`focusout`,e=>{a.contains(e.relatedTarget)||u(`focus`,!1)}),e(t,e=>u(`offscreen`,!e),`0px 0px -20% 0px`)});

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.