27 lines
28 KiB
JavaScript
27 lines
28 KiB
JavaScript
|
/*www.zoomsl.tw1.ru Sergey Zaragulov skype: deeserge icq: 287295769 sergeland@mail.ru*/
|
||
|
(function(e){var k=!0,r=!1;e.fn.imagezoomsl=function(d){d=d||{};return this.each(function(){if(!e(this).is("img"))return k;var c=this;setTimeout(function(){e(new Image).load(function(){y.F(e(c),d)}).attr("src",e(c).attr("src"))},30)})};var y={};e.extend(y,{dsetting:{loadinggif:"",loadopacity:0.1,loadbackground:"#878787",cursorshade:k,magnifycursor:"crosshair",cursorshadecolor:"#fff",cursorshadeopacity:0.3,cursorshadeborder:"1px solid black",zindex:"",stepzoom:0.5,zoomrange:[2,2],zoomstart:2,disablewheel:k,showstatus:k,
|
||
|
showstatustime:2E3,statusdivborder:"1px solid black",statusdivbackground:"#C0C0C0",statusdivpadding:"4px",statusdivfont:"bold 13px Arial",statusdivopacity:0.8,magnifierpos:"right",magnifiersize:[0,0],magnifiereffectanimate:"showIn",innerzoom:r,innerzoommagnifier:r,descarea:r,leftoffset:15,rightoffset:15,switchsides:k,magnifierborder:"1px solid black",textdnbackground:"#fff",textdnpadding:"10px",textdnfont:"13px/20px cursive",scrollspeedanimate:5,zoomspeedanimate:7,loopspeedanimate:2.5,magnifierspeedanimate:350,
|
||
|
classmagnifier:"magnifier",classcursorshade:"cursorshade",classstatusdiv:"statusdiv",classtextdn:"textdn"},U:-1!=navigator.userAgent.indexOf("MSIE")?k:r,T:function(d){var c=0,a;d.parents().add(d).each(function(){a=e(this).css("zIndex");a=isNaN(a)?0:+a;c=Math.max(c,a)});return c},L:function(d,c,a){if("left"==d)return d=-a.f.b*a.k+a.e.b,0<c?0:c<d?d:c;d=-a.f.d*a.k+a.e.d;return 0<c?0:c<d?d:c},H:function(d){var c=this,a=d.data("specs");if(a){var e=a.r.offsetsl(),s=c.a.g-e.left,l=c.a.i-e.top;c.a.B+=(c.a.g-
|
||
|
c.a.B)/2.45342;c.a.C+=(c.a.i-c.a.C)/2.45342;a.G.css({left:c.a.B-10,top:c.a.C+20});var h=Math.round(a.e.b/a.k),b=Math.round(a.e.d/a.k);c.a.z+=(s-c.a.z)/a.c.loopspeedanimate;c.a.A+=(l-c.a.A)/a.c.loopspeedanimate;a.K.css({left:a.f.b>h?Math.min(a.f.b-h,Math.max(0,c.a.z-h/2))+e.left-a.w.t.N:e.left-a.w.t.N,top:a.f.d>b?Math.min(a.f.d-b,Math.max(0,c.a.A-b/2))+e.top-a.w.t.R:e.top-a.w.t.R});a.c.innerzoommagnifier&&(c.a.p+=(c.a.g-c.a.p)/a.c.loopspeedanimate,c.a.q+=(c.a.i-c.a.q)/a.c.loopspeedanimate,a.l.css({left:c.a.p-
|
||
|
Math.round(a.e.b/2),top:c.a.q-Math.round(a.e.d/2)}),a.s.css({left:c.a.p-Math.round(a.e.b/2),top:c.a.q+a.e.d/2}));c.a.u+=(s-c.a.u)/a.c.scrollspeedanimate;c.a.v+=(l-c.a.v)/a.c.scrollspeedanimate;a.J.css({left:c.L("left",-c.a.u*a.k+a.e.b/2,a),top:c.L("top",-c.a.v*a.k+a.e.d/2,a)});c.a.n=setTimeout(function(){c.H(d)},30)}},I:function(d){var c=this,a=d.data("specs");a&&(a.h+=(a.k-a.h)/a.c.zoomspeedanimate,a.h=Math.round(1E3*a.h)/1E3,a.K.css({width:a.f.b>Math.round(a.e.b/a.h)?Math.round(a.e.b/a.h):a.f.b,
|
||
|
height:a.f.d>Math.round(a.e.d/a.h)?Math.round(a.e.d/a.h):a.f.d}),a.J.css({width:Math.round(a.h*a.m.b*(a.f.b/a.m.b)),height:Math.round(a.h*a.m.d*(a.f.d/a.m.d))}),c.a.o=setTimeout(function(){c.I(d)},30))},a:{},P:function(d){function c(){}var a=d.data("specs");d=a.c.magnifiersize[0];var p=a.c.magnifiersize[1],s,l=a.r.offsetsl(),h=0,b=0;s=l.left+("left"===a.c.magnifierpos?-a.e.b-a.c.leftoffset:a.f.b+a.c.rightoffset);a.c.switchsides&&!a.c.innerzoom&&("left"!==a.c.magnifierpos&&s+a.e.b+a.c.leftoffset>=
|
||
|
e(window).width()&&l.left-a.e.b>=a.c.leftoffset?s=l.left-a.e.b-a.c.leftoffset:"left"===a.c.magnifierpos&&0>s&&(s=l.left+a.f.b+a.c.rightoffset));h=s;b=l.top;a.l.css({visibility:"visible",display:"none"});a.c.descarea&&(h=e(a.c.descarea).offsetsl().left,b=e(a.c.descarea).offsetsl().top);a.c.innerzoommagnifier&&(h=this.a.g-Math.round(a.e.b/2),b=this.a.i-Math.round(a.e.d/2));c=function(){a.s.stop(k,k).fadeIn(a.c.magnifierspeedanimate);a.c.innerzoommagnifier||a.s.css({left:h,top:b+p})};a.c.innerzoom&&
|
||
|
(h=l.left,b=l.top,c=function(){a.r.css({visibility:"hidden"});a.s.css({left:h,top:b+p}).stop(k,k).fadeIn(a.c.magnifierspeedanimate)});switch(a.c.magnifiereffectanimate){case "slideIn":a.l.css({left:h,top:b-p/3,width:d,height:p}).stop(k,k).show().animate({top:b},a.c.magnifierspeedanimate,"easeOutBounceSL",c);break;case "showIn":a.l.css({left:l.left+Math.round(a.f.b/2),top:l.top+Math.round(a.f.d/2),width:Math.round(a.e.b/5),height:Math.round(a.e.d/5)}).stop(k,k).show().css({opacity:"0.1"}).animate({left:h,
|
||
|
top:b,opacity:"1",width:d,height:p},a.c.magnifierspeedanimate,c);break;default:a.l.css({left:h,top:b,width:d,height:p}).stop(k,k).fadeIn(a.c.magnifierspeedanimate,c)}a.c.showstatus&&(a.Q||a.M)?a.G.html(a.Q+'<div style="font-size:80%">'+a.M+"</div>").stop(k,k).fadeIn().delay(a.c.showstatustime).fadeOut("slow"):a.G.hide()},S:function(d){var c=d.data("specs");d=c.r.offsetsl();switch(c.c.magnifiereffectanimate){case "showIn":c.l.stop(k,k).animate({left:d.left+Math.round(c.f.b/2),top:d.top+Math.round(c.f.d/
|
||
|
2),opacity:"0.1",width:Math.round(c.e.b/5),height:Math.round(c.e.d/5)},c.c.magnifierspeedanimate,function(){c.l.hide()});break;default:c.l.stop(k,k).fadeOut(c.c.magnifierspeedanimate)}},F:function(d,c,a){function p(){this.i=this.g=0}function s(a){g.data("specs",{c:b,Q:y,M:E,r:d,l:u,J:a,G:n,K:q,s:t,f:m,m:{b:a.width(),d:a.height()},e:{b:u.width(),d:u.height()},w:{b:q.width(),d:q.height(),t:{N:parseInt(q.css("border-left-width"))||0,R:parseInt(q.css("border-top-width"))||0}},h:B,k:B})}function l(a){return!a.complete||
|
||
|
"undefined"!==typeof a.naturalWidth&&0===a.naturalWidth?r:k}function h(a){var b=a||window.event,c=[].slice.call(arguments,1),d=0,f=0,g=0,h=0,h=0;a=e.event.fix(b);a.type="mousewheel";b.wheelDelta&&(d=b.wheelDelta);b.detail&&(d=-1*b.detail);b.deltaY&&(d=g=-1*b.deltaY);b.deltaX&&(f=b.deltaX,d=-1*f);void 0!==b.wheelDeltaY&&(g=b.wheelDeltaY);void 0!==b.wheelDeltaX&&(f=-1*b.wheelDeltaX);h=Math.abs(d);if(!z||h<z)z=h;h=Math.max(Math.abs(g),Math.abs(f));if(!w||h<w)w=h;b=0<d?"floor":"ceil";d=Math[b](d/z);f=
|
||
|
Math[b](f/w);g=Math[b](g/w);c.unshift(a,d,f,g);return(e.event.dispatch||e.event.handle).apply(this,c)}var b=e.extend({},this.dsetting,c),x=b.zindex||this.T(d),m={b:d.width(),d:d.height()},p=new p,y=d.attr("data-title")?d.attr("data-title"):"",E=d.attr("data-help")?d.attr("data-help"):"",C=d.attr("data-text-bottom")?d.attr("data-text-bottom"):"",f=this,B,v,u,q,n,g,t;if(0===m.d||0===m.b)e(new Image).load(function(){f.F(d,c)}).attr("src",d.attr("src"));else{d.css({visibility:"visible"});b.j=d.attr("data-large")||
|
||
|
d.attr("src");for(v in b)""===b[v]&&(b[v]=this.dsetting[v]);B=b.zoomrange[0]<b.zoomstart?b.zoomstart:b.zoomrange[0];if("0,0"===b.magnifiersize.toString()||""===b.magnifiersize.toString())b.magnifiersize=b.innerzoommagnifier?[m.b/2,m.d/2]:[m.b,m.d];b.descarea&&e(b.descarea).length?0===e(b.descarea).width()||0===e(b.descarea).height()?b.descarea=r:b.magnifiersize=[e(b.descarea).width(),e(b.descarea).height()]:b.descarea=r;b.innerzoom&&(b.magnifiersize=[m.b,m.d],c.cursorshade||(b.cursorshade=r),c.scrollspeedanimate||
|
||
|
(b.scrollspeedanimate=10));if(b.innerzoommagnifier){if(!c.magnifycursor&&(window.chrome||window.sidebar))b.magnifycursor="none";b.cursorshade=r;b.magnifiereffectanimate="fadeIn"}v=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"];var A="onwheel"in document||9<=document.documentMode?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],z,w;if(e.event.fixHooks)for(var D=v.length;D;)e.event.fixHooks[v[--D]]=e.event.mouseHooks;e.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=
|
||
|
A.length;a;)this.addEventListener(A[--a],h,r);else this.onmousewheel=h},teardown:function(){if(this.removeEventListener)for(var a=A.length;a;)this.removeEventListener(A[--a],h,r);else this.onmousewheel=null}};e.fn.offsetsl=function(){var a=this.get(0);if(a.getBoundingClientRect)a=this.offset();else{for(var b=0,c=0;a;)b+=parseInt(a.offsetTop),c+=parseInt(a.offsetLeft),a=a.offsetParent;a={top:b,left:c}}return a};e.easing.easeOutBounceSL=function(a,b,c,d,e){return(b/=e)<1/2.75?d*7.5625*b*b+c:b<2/2.75?
|
||
|
d*(7.5625*(b-=1.5/2.75)*b+0.75)+c:b<2.5/2.75?d*(7.5625*(b-=2.25/2.75)*b+0.9375)+c:d*(7.5625*(b-=2.625/2.75)*b+0.984375)+c};u=e("<div />").attr({"class":b.classmagnifier}).css({position:"absolute",zIndex:x,width:b.magnifiersize[0],height:b.magnifiersize[1],left:-1E4,top:-1E4,visibility:"hidden",overflow:"hidden"}).appendTo(document.body);c.classmagnifier||u.css({border:b.magnifierborder});q=e("<div />");b.cursorshade&&(q.attr({"class":b.classcursorshade}).css({zIndex:x,display:"none",position:"absolute",
|
||
|
width:Math.round(b.magnifiersize[0]/b.zoomstart),height:Math.round(b.magnifiersize[1]/b.zoomstart),top:0,left:0}).appendTo(document.body),c.classcursorshade||q.css({border:b.cursorshadeborder,opacity:b.cursorshadeopacity,backgroundColor:b.cursorshadecolor}));b.loadinggif||(b.loadinggif="data:image/gif;base64,R0lGODlhQABAAKEAAPz6/Pz+/Pr6+gAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQJBgACACwAAAAAQABAAAACVJSPqcvtD6OctNqLs968+w+G4kiW5omm6sq27gvH8kzX9o3n+s73/g8MCofEovGITCqXzKbzCY1Kp9Sq9YqFBbaBH5cL4H2/4vG2bEaPe+YwmysqAAAh+QQJBgACACwAAAAAQABAAAACVZSPqcvtD6OctNqLs968+w+G4kiW5omm6sq27gvH8kzX9o3n+s73/g8MCofEovGITCqXzKbzqQpIAT+pNdC7XnlaK7eL3YHDOrAPsIWq1+y2+w2PnwoAIfkECQYAAgAsAAAAAEAAQAAAAleUj6nL7Q+jnLTai7PevPsPhuJIluaJpurKtu4Lx/JM1/aN5/rO9/4PDI4AgQDgV0wGekolr5l8Qpe7KVVHhDKbQKPwCw6Lx+Sy+YxOq9fstvsNj8vn4AIAIfkECQYAAgAsAAAAAEAAQAAAAmiUj6nL7Q+jnLTai7PevPsPhuJIluaJpurKtu4Lx/JM1/aNk0DAB3nSC/4OwR5guCvyhsreUNA8MpVPQ7GKzWq33K73Cw6Lx+Sy+YxOq9fsttsWlD6bz+R1qpTjmgH9zS40R1UV95ZQAAAh+QQJBgACACwAAAAAQABAAAACapSPqcvtD6OctNqLs968+w+G4kiW5omm6sq2bRAAbgXAtjxH9p5D9W7rOYA8IeMHxBkXxMByWHwOpdSq9YrNarfcrvcLDovH5LL5jE6r1+y2+/JTZonaphNrnzf1dCzyVgfUFfNWaHgoVQAAIfkECQYAAgAsAAAAAEAAQAAAAm2Uj6nL7Q+jnLTai7PevPsPhuJIluZ5AQDKBe7LYsD7rnFF0ze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YQghTduh1WJTG+AgZKTlJWWl5iZmpucnoR4jW8pgYCEhYSjq6B+rIuBg5yBkrO0tbO1sAACH5BAkGAAIALAAAAABAAEAAAAKalI+paxAfmJy0Moit3gkChXncWIXR4ZgnyXYqqq7tHCPqN+f18eZ6D4P4hsChDucSGn+ZpZNnQj6Nuym1aGWGslcTt6v8DlPisvmMTqvXFIeUrdnC4955+2afxGT5RCr01mdTJ3iBEVg4iJjI2Oj4CBkpOUlZaXn5lbLISPhY5fjZGMqJRQoo2RkZsInZ6voKGys7S1trextZAAAh+QQJBgACACwAAAAAQABAAAACmpSPqYvhwaKcFLD3qN4XJ+xxogY6TQmNKgOgloGm63zEckznQoueoU7rfR4v4ASE4BGNOWHNxGw6o0Ylksq0YaOuLdMK9WYdRbH5jE6r1+wgub0qwUW4OWlqj9Tzkj1fD1L215ExaHiImKi4yNjo+AgZKdECIMgo5+inqJnIieh5CBZg2XkFOSqZqrrK2ur6ChsrO0tba3vbWgAAIfkECQYAAgAsAAAAAEAAQAAAApiUj6mbEA+YnHS+ENPdtfu1PVoYfKZHioaTnq6UlkYsv/YRH2yY3XeOI/lQHJ1wdBl2WsFLT2kDQqcrKXVqvSpTT+2Q6aU6w+Sy+YxONzZdtWeXdJ+ycgq9DgPj7fq9JeT3URRIWGh4iJiouMjY+DLmKACn0sjVO
|
||
|
n=e("<div />").attr({"class":b.classstatusdiv+" preloadevt"}).css({position:"absolute",display:"none",zIndex:x,top:0,left:0}).html('<img src="'+b.loadinggif+'" />').appendTo(document.body);g=e("<div />").attr({"class":"tracker"}).css({zIndex:x,backgroundImage:f.U?"url(cannotbe)":"none",position:"absolute",width:m.b,height:m.d,left:a?d.offsetsl().left:-1E4,top:a?d.offsetsl().top:-1E4}).appendTo(document.body);t=e("<div />");C&&(t.attr({"class":b.classtextdn}).css({position:"absolute",zIndex:x,left:0,
|
||
|
top:0,display:"none"}).html(C).appendTo(document.body),c.classtextdn||t.css({border:b.magnifierborder,background:b.textdnbackground,padding:b.textdnpadding,font:b.textdnfont}),t.css({width:b.magnifiersize[0]-parseInt(t.css("padding-left"))-parseInt(t.css("padding-right"))}));g.data("largeimage",b.j);e(window).bind("resize",function(){var a=d.offsetsl();g.data("loadimgevt")&&g.css({left:a.left,top:a.top});n.filter(".preloadevt").css({left:a.left+m.b/2-n.width()/2,top:a.top+m.d/2-n.height()/2,visibility:"visible"})});
|
||
|
e(document).mousemove(function(a){f.a.D=a.pageX;f.a.g!==f.a.D&&(clearTimeout(f.a.n),clearTimeout(f.a.o),d.css({visibility:"visible"}))});d.mouseover(function(){var a=d.offsetsl();g.css({left:a.left,top:a.top}).show()});g.mouseover(function(a){f.a.g=a.pageX;f.a.i=a.pageY;p.g=a.pageX;p.i=a.pageY;f.a.D=a.pageX;var h=d.offsetsl();a=f.a.g-h.left;h=f.a.i-h.top;f.a.z=a;f.a.A=h;f.a.u=a;f.a.v=h;f.a.p=f.a.g;f.a.q=f.a.i;f.a.B=f.a.g-10;f.a.C=f.a.i+20;g.css({cursor:b.magnifycursor});b.j=d.attr("data-large")||
|
||
|
d.attr("src");n.show();clearTimeout(f.a.n);clearTimeout(f.a.o);b.j!==g.data("largeimage")&&(e(new Image).load(function(){}).attr("src",b.j),e(g).unbind(),e(n).remove(),e(q).remove(),e(u).remove(),e(g).remove(),e(t).remove(),f.F(d,c,k));g.data("loadevt")&&(q.fadeIn(),f.P(g),f.H(g),f.I(g))});g.mousemove(function(a){b.j=d.attr("data-large")||d.attr("src");b.j!==g.data("largeimage")&&(e(new Image).load(function(){}).attr("src",b.j),e(g).unbind(),e(n).remove(),e(q).remove(),e(u).remove(),e(g).remove(),
|
||
|
e(t).remove(),f.F(d,c,k));f.a.g=a.pageX;f.a.i=a.pageY;p.g=a.pageX;p.i=a.pageY;f.a.D=a.pageX});g.mouseout(function(){clearTimeout(f.a.n);clearTimeout(f.a.o);d.css({visibility:"visible"});t.hide();q.add(n.not(".preloadevt")).stop(k,k).hide()});g.one("mouseover",function(){var a=d.offsetsl(),h=e('<img src="'+b.j+'"/>').css({position:"relative",maxWidth:"none"}).appendTo(u);f.O[b.j]||(g.css({opacity:b.loadopacity,background:b.loadbackground}),g.data("loadimgevt",k),n.css({left:a.left+m.b/2-n.width()/
|
||
|
2,top:a.top+m.d/2-n.height()/2,visibility:"visible"}));h.bind("loadevt",function(a,e){if("error"!==e.type){g.mouseout(function(){f.S(g);clearTimeout(f.a.n);clearTimeout(f.a.o);d.css({visibility:"visible"});t.hide();g.hide().css({left:-1E4,top:-1E4})});g.mouseover(function(){l.h=l.k});g.data("loadimgevt",r);g.css({opacity:0,cursor:b.magnifycursor});n.empty();c.classstatusdiv||n.css({border:b.statusdivborder,background:b.statusdivbackground,padding:b.statusdivpadding,font:b.statusdivfont,opacity:b.statusdivopacity});
|
||
|
n.hide().removeClass("preloadevt");f.O[b.j]=k;s(h);p.g==f.a.D&&(q.fadeIn(),f.P(g),clearTimeout(f.a.n),clearTimeout(f.a.o),f.H(g),f.I(g));var l=g.data("specs");h.css({width:b.zoomstart*l.m.b*(m.b/l.m.b),height:b.zoomstart*l.m.d*(m.d/l.m.d)});g.data("loadevt",k);b.zoomrange&&b.zoomrange[1]>b.zoomrange[0]?g.bind("mousewheel",function(a,c){var d=l.k,d="in"==(0>c?"out":"in")?Math.min(d+b.stepzoom,b.zoomrange[1]):Math.max(d-b.stepzoom,b.zoomrange[0]);l.k=d;l.V=c;a.preventDefault()}):b.disablewheel&&g.bind("mousewheel",
|
||
|
function(a){a.preventDefault()})}});l(h.get(0))?h.trigger("loadevt",{type:"load"}):h.bind("load error",function(a){h.trigger("loadevt",a)})})}},O:{}})})(jQuery,window);
|