PageSourceSearch

https://www.screenly.io/js/image-zoom.df9039dd32ab9d276e6409686d66681621a00d12366463c07371ef213334b8c4.js

js screenly.io collected 2026-09-24 15:22:17 UTC 1,818 bytes, 1 lines download raw bytes

1(()=>{(function(){"use strict";var s=".docs-content img, .community-body img",e=null,r=null,n=null;function d(t){var o=t.closest("picture"),i={url:t.currentSrc||t.src,width:0};if(!o)return i.url;for(var g of o.querySelectorAll("source")){var p=g.getAttribute("srcset")||"";if(p.split(",").forEach(function(v){var a=v.trim().split(/\s+/),u=Number.parseInt((a[1]||"").replace("w",""),10)||0;a[0]&&u>i.width&&(i={url:a[0],width:u})}),i.width)break}return i.url}function f(){return e||(e=document.createElement("dialog"),e.className="img-zoom",e.setAttribute("aria-label","Enlarged image"),e.innerHTML='<button type="button" class="img-zoom__close" aria-label="Close"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><path d="M6 6l12 12M18 6L6 18"/></svg></button><figure class="img-zoom__figure"><img class="img-zoom__img" alt=""><figcaption class="img-zoom__caption"></figcaption></figure>',document.body.appendChild(e),r=e.querySelector(".img-zoom__img"),n=e.querySelector(".img-zoom__caption"),e.addEventListener("click",function(t){t.target!==r&&c()}),e.addEventListener("cancel",function(t){t.preventDefault(),c()}),e.addEventListener("close",l),e)}function l(){r&&r.removeAttribute("src"),document.body.style.overflow=""}function c(){e?.open&&e.close(),l()}function m(t){var o=f();r.src=d(t),r.alt=t.alt||"",n.textContent=t.alt||"",n.hidden=!t.alt,document.body.style.overflow="hidden",o.showModal(),window.posthog&&typeof window.posthog.capture=="function"&&window.posthog.capture("image_zoomed",{alt:(t.alt||"").slice(0,120)})}document.addEventListener("click",function(t){var o=t.target?.closest?.(s)||null;!o||o.closest("a, button, .img-zoom")||o.naturalWidth&&o.naturalWidth<160||(t.preventDefault(),m(o))})})();})();

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.