PageSourceSearch

https://epson.ca/_ui/_v202608182013/responsive/common/js/jquery.zoom.custom.min.js

js epson.ca collected 2026-10-01 13:52:15 UTC 3,393 bytes, 7 lines download raw bytes

1/*!
2	Zoom v1.7.13 - 2014-04-29
3	Enlarge images on click or mouseover.
4	(c) 2014 Jack Moore - http://www.jacklmoore.com/zoom
5	license: http://www.opensource.org/licenses/mit-license.php
6*/
7(function(a){var b={url:false,callback:false,target:false,duration:120,on:"mouseover",touch:true,onZoomIn:false,onZoomOut:false,zoomEnableCallBack:false,zoomEnable:true,magnify:1,longtouchtimer:function(){},touchduration:500};a.zoom=function(p,c,k,g){var n,q,f,d,e,m,h,l=a(p).css("position"),o=a(c);p.style.position=/(absolute|fixed)/.test(l)?l:"relative";p.style.overflow="hidden";k.style.width=k.style.height="";var j=a("<div class='zoomImg'><div class='zoomImgMask'></div></div>").css({width:k.width*g,height:k.height*g}).appendTo(p);a(k).appendTo(j);return{init:function(){q=a(p).outerWidth();n=a(p).outerHeight();if(c===p){d=q;f=n}else{d=o.outerWidth();f=o.outerHeight()}e=(k.width-q)/d;m=(k.height-n)/f;h=o.offset()},move:function(s){if(h==undefined){h={left:0,top:0}}var r=(s.pageX-h.left),i=(s.pageY-h.top);i=Math.max(Math.min(i,f),0);r=Math.max(Math.min(r,d),0);a(k).parent(".zoomImg").css("left",(r*-e)+"px");a(k).parent(".zoomImg").css("top",(i*-m)+"px")}}};a.fn.zoom=function(c){return this.each(function(){var g=a.extend({},b,c||{}),l=g.target||this,d=this,k=a(d),h=document.createElement("img"),e=a(h),j="mousemove.zoom",m=false,f=false,i;if(!g.url){i=k.find("img");if(i[0]){g.url=i.data("src")||i.attr("src")}if(!g.url){return}}(function(){var n=l.style.position;var o=l.style.overflow;k.one("zoom.destroy",function(){k.off(".zoom");l.style.position=n;l.style.overflow=o;e.remove()})}());h.onload=function(){var o=a.zoom(l,d,h,g.magnify);function p(q){if(a.isFunction(g.zoomEnableCallBack)){g.zoomEnable=g.zoomEnableCallBack.call(h)}if(!g.zoomEnable){return false}o.init();o.move(q);a(h).parent(".zoomImg").stop().fadeTo(a.support.opacity?g.duration:0,1,a.isFunction(g.onZoomIn)?g.onZoomIn.call(h):false)}function n(){if(g.longtouchtimer){clearTimeout(g.longtouchtimer)}a(h).parent(".zoomImg").stop().fadeTo(g.duration,0,a.isFunction(g.onZoomOut)?g.onZoomOut.call(h):false)}if(g.on==="grab"){k.on("mousedown.zoom",function(q){if(q.which===1){a(document).one("mouseup.zoom",function(){n();a(document).off(j,o.move)});g.longtouchtimer=setTimeout(function(){p(q);a(document).on(j,o.move)},g.touchduration);q.preventDefault()}})}else{if(g.on==="click"){k.on("click.zoom",function(q){if(m){return}else{m=true;p(q);a(document).on(j,o.move);a(document).one("click.zoom",function(){n();m=false;a(document).off(j,o.move)});return false}})}else{if(g.on==="toggle"){k.on("click.zoom",function(q){if(m){n()}else{p(q)}m=!m})}else{if(g.on==="mouseover"){o.init();k.on("mouseenter.zoom",p).on("mouseleave.zoom",n).on(j,function(){if(g.longtouchtimer){clearTimeout(g.longtouchtimer)}o.move()})}}}}if(g.touch){f=false;k.on("touchstart.zoom",function(q){clearTimeout(g.longtouchtimer);g.longtouchtimer=setTimeout(function(){if(f){f=false;n()}else{f=true;q.preventDefault();p(q.originalEvent.touches[0]||q.originalEvent.changedTouches[0])}},g.touchduration)}).on("touchmove.zoom",function(q){if(f){q.preventDefault();o.move(q.originalEvent.touches[0]||q.originalEvent.changedTouches[0])}}).on("touchend.zoom",function(q){q.preventDefault();if(g.longtouchtimer){clearTimeout(g.longtouchtimer)}n();f=false})}if(a.isFunction(g.callback)){g.callback.call(h)}};h.src=g.url})};a.fn.zoom.defaults=b}(window.jQuery));

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.