PageSourceSearch

https://cmj.umds.ac.jp/campusweb/js/jquery.mousewheel.js

js umds.ac.jp collected 2026-10-02 10:25:46 UTC 2,470 bytes, 5 lines download raw bytes

1(function(d){"function"===typeof define&&define.amd?define(["jquery"],d):"object"===typeof exports?module.exports=d:d(jQuery)})(function(d){function l(a){var b=a||window.event,k=q.call(arguments,1),f=0,e=0,c=0,g=0,l=0,p=0;a=d.event.fix(b);a.type="mousewheel";"detail"in b&&(c=-1*b.detail);"wheelDelta"in b&&(c=b.wheelDelta);"wheelDeltaY"in b&&(c=b.wheelDeltaY);"wheelDeltaX"in b&&(e=-1*b.wheelDeltaX);"axis"in b&&b.axis===b.HORIZONTAL_AXIS&&(e=-1*c,c=0);f=0===c?e:c;"deltaY"in b&&(f=c=-1*b.deltaY);"deltaX"in
2b&&(e=b.deltaX,0===c&&(f=-1*e));if(0!==c||0!==e){1===b.deltaMode?(g=d.data(this,"mousewheel-line-height"),f*=g,c*=g,e*=g):2===b.deltaMode&&(g=d.data(this,"mousewheel-page-height"),f*=g,c*=g,e*=g);g=Math.max(Math.abs(c),Math.abs(e));if(!h||g<h)h=g,m.settings.adjustOldDeltas&&"mousewheel"===b.type&&0===g%120&&(h/=40);m.settings.adjustOldDeltas&&"mousewheel"===b.type&&0===g%120&&(f/=40,e/=40,c/=40);f=Math[1<=f?"floor":"ceil"](f/h);e=Math[1<=e?"floor":"ceil"](e/h);c=Math[1<=c?"floor":"ceil"](c/h);m.settings.normalizeOffset&&
3this.getBoundingClientRect&&(b=this.getBoundingClientRect(),l=a.clientX-b.left,p=a.clientY-b.top);a.deltaX=e;a.deltaY=c;a.deltaFactor=h;a.offsetX=l;a.offsetY=p;a.deltaMode=0;k.unshift(a,f,e,c);n&&clearTimeout(n);n=setTimeout(r,200);return(d.event.dispatch||d.event.handle).apply(this,k)}}function r(){h=null}var k="onwheel"in document||9<=document.documentMode?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],q=Array.prototype.slice,n,h,m=d.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var a=
4k.length;a;)this.addEventListener(k[--a],l,!1);else this.onmousewheel=l;d.data(this,"mousewheel-line-height",m.getLineHeight(this));d.data(this,"mousewheel-page-height",m.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var a=k.length;a;)this.removeEventListener(k[--a],l,!1);else this.onmousewheel=null;d.removeData(this,"mousewheel-line-height");d.removeData(this,"mousewheel-page-height")},getLineHeight:function(a){a=d(a);var b=a["offsetParent"in d.fn?"offsetParent":"parent"]();
5b.length||(b=d("body"));return parseInt(b.css("fontSize"),10)||parseInt(a.css("fontSize"),10)||16},getPageHeight:function(a){return parseInt(d(a).height())},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};d.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})});

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.