PageSourceSearch

https://domchemika.pl/js/prod/transpiled/library/swipe-it.js?ts=1791278589

js domchemika.pl collected 2026-10-08 10:38:09 UTC 1,387 bytes, 1 lines download raw bytes

1"use strict";!function(t,n){let e=!1;const i=[t],o=!0,c=30;function s(t,n,e){r(e).forEach(e=>e.addEventListener(t,n))}function u(t,n,e){r(e).forEach(e=>e.removeEventListener(t,n))}function f(t,e,i={}){const o=n.createEvent("Event");o.initEvent(t,!0,!0),o.swipe=i,r(e).forEach(t=>t.dispatchEvent(o))}function r(t){return Array.isArray(t)?t:[t]}t.SwipeIt=function(t,r={}){let a,h,m,v,l;function p(){h=!1,m=!1,v=!1,l=!1,e=!1}function d(t){e=this,h=t.clientX,m=t.clientY,s("mousemove",E,i),s("mouseup",w,i)}function E(t){t.preventDefault(),h&&m&&(v=t.clientX,l=t.clientY)}function w(t){u("mousemove",E,i),u("mouseup",w,i),X(t)}function D(t){e=this,h=t.touches[0].clientX,m=t.touches[0].clientY}function y(t){v=t.touches[0].clientX,l=t.touches[0].clientY}function X(t){if(h&&m&&v&&l){const[t,n]=[h-v,m-l],[i,o]=[t,n].map(Math.abs),c=r.minDistance;if(i>c){f(h<v?"swipeRight":"swipeLeft",e,{distance:t,start:h,end:v})}if(o>c){f(m>l?"swipeUp":"swipeDown",e,{distance:n,start:m,end:l})}(i>c||o>c)&&f("swipe",e)}p()}a="object"==typeof t?[t]:function(t){const n=[];for(let e=0;e<t.length;e++)n.push(t[e]);return n}(n.querySelectorAll(t)),r.mouseEvent=void 0===r.mouseEvent?o:r.mouseEvent,r.minDistance=void 0===r.minDistance?c:r.minDistance,p(),s("touchstart",D,a),s("touchmove",y,a),s("touchend",X,a),r.mouseEvent&&s("mousedown",d,a),this.on=function(t,n){return s(t,n,a),this}}}(window,document);

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.