PageSourceSearch

https://gliver.ru/local/templates/gliver_new/js/jquery.dragscroll.min.js?16629959112301

js gliver.ru collected 2026-10-07 08:16:06 UTC 2,301 bytes, 6 lines download raw bytes

1/*
2 * jquery.dragScroll v1.0.0
3 * author [email protected]
4 * https://github.com/YuTingtao/dragScroll.js
5 */
6!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(h){var o={init:function(t){var p=h.extend({},{direction:null,throttleTime:50,onStart:function(){},onMove:function(){},onEnd:function(){}},t);return this.each(function(){var i,r,l,c,u=h(this),s=p.direction,o=p.throttleTime,e=p.onStart,a=p.onMove,n=p.onEnd,f=!1;/(Android|Adr|iPhone|iPad|iPod|iOS|Phone|SymbianOS)/i.test(navigator.userAgent)?u.on("touchstart",function(t){t=t.originalEvent.targetTouches[0];f=!0,l=t.clientX,c=t.clientY,i=h(this).parent().scrollLeft(),r=h(this).parent().scrollTop(),e&&e.call(this,u),u.on("touchmove",function(e){e.stopPropagation();var n,e=e.originalEvent.targetTouches[0];f&&((n=null)==n&&(n=setTimeout(function(){var t=parseInt(e.clientX-l),o=parseInt(e.clientY-c);"scrollLeft"==s?u.parent().scrollLeft(i-t):("scrollTop"==s||u.parent().scrollLeft(i-t),u.parent().scrollTop(r-o)),n=null},o)),a&&a.call(this,u))}),u.on("touchend",function(t){f&&n&&n.call(this,u),f=!1,u.off("touchmove touchend")})}):(u.children("input, textarea, button").on("mousedown mousemove",function(t){(t=t)&&t.stopPropagation?t.stopPropagation():window.event.cancelBubble=!0}),u.on("mousedown",function(t){t=t||window.event;f=!0,l=t.clientX,c=t.clientY,i=h(this).parent().scrollLeft(),r=h(this).parent().scrollTop(),e&&e.call(this,u),u.on("mousemove",function(e){e.preventDefault();var n,e=e||window.event;f&&((n=null)==n&&(n=setTimeout(function(){var t=parseInt(e.clientX-l),o=parseInt(e.clientY-c);"scrollLeft"==s?u.parent().scrollLeft(i-t):("scrollTop"==s||u.parent().scrollLeft(i-t),u.parent().scrollTop(r-o)),n=null},o)),a&&a.call(this,u))}),u.on("mouseup mouseleave",function(){f&&n&&n.call(this,u),f=!1,u.off("mousemove mouseup mouseleave")})}))})},destroy:function(){return h(this).each(function(){var t=h(this);t.off("mousedown mousemove mouseup mouseleave"),t.off("touchstart touchmove touchend")})}};h.fn.dragScroll=function(t){return o[t]?o[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void h.error("method "+t+" does not exist on jquery.dragScroll.js"):o.init.apply(this,arguments)}});

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.