PageSourceSearch

https://uk.jkp.com/cdn/shop/t/49/assets/product-modal.js?v=39985913797161243311788355187

js jkp.com collected 2026-10-01 09:06:09 UTC 1,764 bytes, 1 lines download raw bytes

1!function(){"use strict";class e extends HTMLElement{constructor(){super(),this.querySelector('[id^="ModalClose-"]')&&this.querySelector('[id^="ModalClose-"]').addEventListener("click",this.hide.bind(this,!1)),this.addEventListener("keyup",e=>{"ESCAPE"===e.code.toUpperCase()&&this.hide()}),this.classList.contains("media-modal")?this.addEventListener("pointerup",e=>{"mouse"!==e.pointerType||e.target.closest("deferred-media, product-model")||this.hide()}):this.addEventListener("click",e=>{e.target===this&&this.hide()})}connectedCallback(){this.moved||(this.moved=!0,document.body.appendChild(this))}show(e){this.openedBy=e;const t=this.querySelector(".template-popup");document.body.classList.add("overflow-hidden"),this.setAttribute("open",""),t&&t.loadContent(),window.trapFocus.trapFocus(this,this.querySelector('[role="dialog"]'))}hide(){document.body.classList.remove("overflow-hidden"),document.body.dispatchEvent(new CustomEvent("modalClosed")),this.removeAttribute("open"),window.trapFocus.removeTrapFocus(this.openedBy),window.helper.pauseAllMedia()}}var t=e;customElements.get("product-modal")||customElements.define("product-modal",class extends t{hide(){super.hide()}show(e){super.show(e),this.showActiveMedia()}showActiveMedia(){this.querySelectorAll(`[data-media-id]:not([data-media-id="${this.openedBy.getAttribute("data-media-id")}"])`).forEach(e=>{e.classList.remove("active")});const e=this.querySelector(`[data-media-id="${this.openedBy.getAttribute("data-media-id")}"]`),t=e.querySelector("template"),o=t?t.content:null;e.classList.add("active"),e.scrollIntoView();const d=this.querySelector('[role="document"]');d.scrollLeft=(e.width-d.clientWidth)/2,"DEFERRED-MEDIA"===e.nodeName&&o&&o.querySelector(".js-youtube")&&e.loadContent()}})}();

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.