PageSourceSearch

https://teufelaudio.fr/assets/13e4bd8e51966ac695ff23aa3e59fb6ec2fd…/js/yves_default.image-comparison-slider.js

js teufelaudio.fr collected 2026-09-25 04:37:05 UTC 2,095 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunklautsprecher_teufel=self.webpackChunklautsprecher_teufel||[]).push([[1022],{22506:(t,e,n)=>{n.r(e),n.d(e,{default:()=>o});var i=n(57142);class o extends i.A{constructor(){super(...arguments),this.currentPosition=50}readyCallback(){this.boundOnPointerDown=this.onPointerDown.bind(this),this.boundOnPointerMove=this.onPointerMove.bind(this),this.boundOnPointerUp=this.onPointerUp.bind(this),this.boundOnKeyDown=this.onKeyDown.bind(this),this.handle=this.querySelector("[data-"+this.name+"-handle]"),this.setPosition(this.initialPosition),this.handle.addEventListener("pointerdown",this.boundOnPointerDown),this.addEventListener("keydown",this.boundOnKeyDown)}disconnectedCallback(){this.handle.removeEventListener("pointerdown",this.boundOnPointerDown),this.removeEventListener("keydown",this.boundOnKeyDown),document.removeEventListener("pointermove",this.boundOnPointerMove),document.removeEventListener("pointerup",this.boundOnPointerUp)}onPointerDown(t){t.preventDefault(),this.handle.setPointerCapture(t.pointerId),document.addEventListener("pointermove",this.boundOnPointerMove),document.addEventListener("pointerup",this.boundOnPointerUp),this.classList.add(this.name+"--dragging")}onPointerMove(t){t.preventDefault();var e=this.getBoundingClientRect(),n=t.clientX-e.left,i=this.clamp(n/e.width*100,0,100);this.setPosition(i)}onPointerUp(t){this.handle.releasePointerCapture(t.pointerId),document.removeEventListener("pointermove",this.boundOnPointerMove),document.removeEventListener("pointerup",this.boundOnPointerUp),this.classList.remove(this.name+"--dragging")}onKeyDown(t){var e,n=t.shiftKey?10:1;switch(t.key){case"ArrowLeft":e=this.currentPosition-n;break;case"ArrowRight":e=this.currentPosition+n;break;default:return}t.preventDefault(),this.setPosition(this.clamp(e,0,100))}setPosition(t){this.currentPosition=t,this.style.setProperty("--slider-position",t+"%"),this.setAttribute("aria-valuenow",String(Math.round(t)))}clamp(t,e,n){return Math.min(Math.max(t,e),n)}get initialPosition(){return+(this.getAttribute("data-initial-position")||50)}}}}]);

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.