<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">/*
* jQuery.OnitexZoom v1.4
* Copyright 2013 Onitex LLC
* Based on:
* jQuery axzoomer
* Alban Xhaferllari
*/
(function($){var methods={init:function(options){return this.each(function(){var settings={maxZoom:2,zoomIn:"zoom-in.png",zoomOut:"zoom-out.png",reset:false,showControls:true,controlsPos:["right","bottom"],opacity:1,sensivity:10,overrideMousewheel:true,mousewheel:true,resetImage:false};
if(this.tagName!="IMG"){$.error("Zoomer plugin applies only to img tag.");return false}var $this=$(this);
var _this=this;var OLD_SRC=_this.src;if($this.hasClass("onitex-zoom")){return}try{eval("var inlineOpts = {"+$(this).attr("title")+"}")
}catch(err){}if(options){$.extend(settings,options)}if(typeof(inlineOpts)!="undefined"){$.extend(settings,inlineOpts)
}$this.data("init-status",{parent:$this.parent(),src:$this.attr("src")}).addClass("onitex-zoom").css({position:"absolute",top:0,left:0}).data("settings",settings);
var MAIN_WIDTH=0;var MAIN_HEIGHT=0;var touchy=("ontouchstart" in document.documentElement)?true:false;
var move="touchmove.onitexzoom mousemove.onitexzoom";var end="touchend.onitexzoom mouseup.onitexzoom";
var down="touchstart.onitexzoom mousedown.onitexzoom";var container=$('&lt;div class="zoom-container" style="position:relative;overflow:hidden;left:0;top:0;" /&gt;').appendTo($this.parent());
$this.data("container",container);var controlsDiv=$('&lt;div class="zoom-control-panel"/&gt;').appendTo(container).css({"z-index":1000,position:"absolute",opacity:settings.opacity});
var zoomtimer;$this.controlZoom=function(x){$this.zoomInOut(x);zoomtimer=setTimeout(function(){$this.controlZoom(x)
},30)};if(settings.zoomIn){var zoomIn=false;if(typeof(settings.zoomIn)=="string"){zoomIn=$('&lt;img src="'+settings.zoomIn+'" alt="+" /&gt;').appendTo(controlsDiv).css("cursor","pointer")
}else{if(typeof(settings.zoomIn)=="object"){zoomIn=settings.zoomIn}}if(zoomIn){zoomIn.bind(down,function(e){e.stopPropagation();
MOUSEX=MAIN_WIDTH/2;MOUSEY=MAIN_HEIGHT/2;$this.controlZoom(0.05)}).bind("dblclick",function(e){e.stopPropagation()
}).bind(end+" mouseout",function(){clearTimeout(zoomtimer)})}}if(settings.zoomOut){var zoomOut=false;
if(typeof(settings.zoomOut)=="string"){zoomOut=$('&lt;img src="'+settings.zoomOut+'" alt="+" /&gt;').appendTo(controlsDiv).css("cursor","pointer")
}else{if(typeof(settings.zoomOut)=="object"){zoomOut=settings.zoomOut}}if(zoomOut){zoomOut.bind(down,function(e){e.stopPropagation();
MOUSEX=MAIN_WIDTH/2;MOUSEY=MAIN_HEIGHT/2;$this.controlZoom(-0.05)}).bind("dblclick",function(e){e.stopPropagation()
}).bind(end+" mouseout",function(){clearTimeout(zoomtimer)})}}if(settings.reset){var reset=false;if(typeof(settings.reset)=="string"){reset=$('&lt;img src="'+settings.reset+'" alt="+" /&gt;').appendTo(controlsDiv).css("cursor","pointer")
}else{if(typeof(settings.reset)=="object"){reset=settings.reset}}if(reset){reset.bind(down,function(e){e.stopPropagation();
MOUSEX=MAIN_WIDTH/2;MOUSEY=MAIN_HEIGHT/2;$this.zoomInOut(-$this.zoomLevel)}).bind("dblclick",function(e){e.stopPropagation()
})}}var MAIN_SRC=$this.attr("src");var ZOOM_SRC=$this.attr("src-big");if(settings.srcBig){ZOOM_SRC=settings.srcBig
}var imgLoad=new Image();imgLoad.onload=function(){MAIN_WIDTH=_this.width;MAIN_HEIGHT=_this.height;$this.data("dims",{width:MAIN_WIDTH,height:MAIN_HEIGHT});
container.css({width:MAIN_WIDTH,height:MAIN_HEIGHT}).append($this);controlsDiv.css({right:settings.controlsPos[0],bottom:settings.controlsPos[1]})
};imgLoad.src=_this.src;var TOUCHNUM=0;function medium_coors(e,rel2obj){var fingers=1;var otop=0,oleft=0;
otop=$(rel2obj).offset().top;oleft=$(rel2obj).offset().left;if(touchy){e=e.originalEvent;fingers=e.touches.length;
var xsum=0,ysum=0;for(var i=0;i&lt;fingers;i++){xsum+=(e.touches[i].pageX-oleft);ysum+=(e.touches[i].pageY-otop)
}return[xsum/fingers,ysum/fingers,fingers]}else{return[e.pageX-oleft,e.pageY-otop,fingers]}}var START_X=0;
var START_Y=0;var MOUSEX=0;var MOUSEY=0;var LIMIT_X=0,LIMIT_Y=0;$this.ENABLE_DRAG=false;container.bind(down,function(e){e.preventDefault();
var coors=medium_coors(e,this);MOUSEX=coors[0];MOUSEY=coors[1];START_X=_this.offsetLeft-MOUSEX;START_Y=_this.offsetTop-MOUSEY;
TOUCHNUM=coors[2];if(e.shiftKey){$this.controlZoom(0.05)}else{if(e.altKey){$this.controlZoom(-0.05)}else{$this.ENABLE_DRAG=true
}}}).bind(move,function(e){e.preventDefault();var coors=medium_coors(e,this);MOUSEX=coors[0];MOUSEY=coors[1];
TOUCHNUM=coors[2];if(TOUCHNUM&lt;=1&amp;&amp;$this.ENABLE_DRAG){$this.drag()}}).bind(end,function(e){$this.ENABLE_DRAG=false;
clearTimeout(zoomtimer)}).bind("dblclick",function(e){if(!e.altKey&amp;&amp;!e.shiftKey){var coors=medium_coors(e,this);
MOUSEX=coors[0];MOUSEY=coors[1];$this.zoomInOut(1)}}).bind("mousewheel",function(e,delta){if(settings.mousewheel){e.preventDefault();
if(settings.overrideMousewheel){e.stopPropagation()}$this.zoomInOut(delta/settings.sensivity)}});_this.ongesturechange=function(e){e.preventDefault();
if(TOUCHNUM&gt;=2){var delta=(e.scale&lt;1)?-1:1;$this.zoomInOut(delta/settings.sensivity)}};$(document).bind(end,function(ev){$this.ENABLE_DRAG=false;
clearTimeout(zoomtimer)});$this.data("ENABLE-AXZ",true);$this.drag=function(){if($this.data("ENABLE-AXZ")!=true){return
}var new_x=MOUSEX+START_X;var new_y=MOUSEY+START_Y;if(new_x&lt;=0&amp;&amp;new_x&gt;=LIMIT_X){$this.css({left:new_x})
}if(new_y&lt;=0&amp;&amp;new_y&gt;=LIMIT_Y){$this.css({top:new_y})}};$this.zoomLevel=1;var timeoutloader;$this.zoomInOut=function(zoom){if($this.data("ENABLE-AXZ")!=true){return
}var new_w=$this.width()*(1+zoom);var new_h=$this.height()*(1+zoom);if(new_w&lt;=MAIN_WIDTH){new_w=MAIN_WIDTH
}if(new_h&lt;=MAIN_HEIGHT){new_h=MAIN_HEIGHT}var newzoom=new_w/MAIN_WIDTH;if(newzoom&gt;settings.maxZoom){return
}else{$this.zoomLevel=newzoom;LIMIT_X=-MAIN_WIDTH*($this.zoomLevel-1);LIMIT_Y=-MAIN_HEIGHT*($this.zoomLevel-1);
var new_x=zoom*(_this.offsetLeft-MOUSEX)+_this.offsetLeft;var new_y=zoom*(_this.offsetTop-MOUSEY)+_this.offsetTop;
if(new_x&lt;LIMIT_X){new_x=LIMIT_X}if(new_x&gt;=0){new_x=0}if(new_y&lt;=LIMIT_Y){new_y=LIMIT_Y}if(new_y&gt;=0){new_y=0
}$this.css({width:new_w,height:new_h,top:new_y,left:new_x})}if($this.zoomLevel&gt;1.2&amp;&amp;ZOOM_SRC!=""&amp;&amp;ZOOM_SRC!=null&amp;&amp;ZOOM_SRC!=$this.attr("src")){var load=new Image();
load.onload=function(){_this.src=ZOOM_SRC};load.src=ZOOM_SRC}else{if($this.zoomLevel&lt;=1.2&amp;&amp;settings.resetImage&amp;&amp;OLD_SRC!=$this.attr("src")){_this.src=OLD_SRC
}}}})},enable:function(){return this.each(function(){var $this=$(this);$this.data("ENABLE-AXZ",true)})
},disable:function(){return this.each(function(){var $this=$(this);$this.data("ENABLE-AXZ",false)})},destroy:function(){return this.each(function(){var $this=$(this);
$this.removeData("settings").removeClass("onitex-zoom");var old=$this.data("init-status");var dims=$this.data("dims");
$this.css({width:dims.width,height:dims.height}).appendTo(old.parent).attr("src",old.src).data("container").remove();
$(document).unbind(".onitexzoom")})},option:function(option,value){return this.each(function(){var $this=$(this);
var curr_setts=$this.data("settings");if(value!=null&amp;&amp;value!=undefined){curr_setts[option]=value;$this.data("settings",curr_setts)
}else{return curr_setts[option]}})}};$.fn.onitexzoom=function(method,options){if(methods[method]){return methods[method].apply(this,Array.prototype.slice.call(arguments,1))
}else{if(typeof method==="object"||!method){return methods.init.apply(this,arguments)}else{$.error("Method "+method+" does not exist on jQuery.onitexzoom")
}}}})(jQuery);</pre></body></html>