0byt3m1n1 - D7net
0byt3m1n1 - D7net
Path:
/
home
/
s13cf5ef
/
www
/
pshoptuscamisetaspersonalizadas
/
js
/
jquery
/
plugins
/
imgareaselect
/
[
Home
]
Name File: jquery.imgareaselect.js
< back
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(m($){1o W=2o.4F,F=2o.4E,M=2o.4D,G=2o.4C;m S(){v $("<4B/>")};$.R=m(X,b){1o L=$(X),2x,A=S(),1k=S(),I=S().u(S()).u(S()).u(S()),B=S().u(S()).u(S()).u(S()),E=$([]),1D,H,q,1g,12,U,1n,1f,1b=0,1B="1A",2e,2d,25,24,1M=10,N,P,1H,c,f,l,j,g={c:0,f:0,l:0,j:0,C:0,J:0},$p,d,i,o,w,h,2k;m 11(x){v x+1g.D-1f.D};m 1m(y){v y+1g.q-1f.q};m 19(x){v x-1g.D+1f.D};m 18(y){v y-1g.q+1f.q};m 1y(3G){v 3G.4A-1f.D};m 1x(3F){v 3F.4z-1f.q};m 14(2W){1o 1i=2W||25,1h=2W||24;v{c:G(g.c*1i),f:G(g.f*1h),l:G(g.l*1i),j:G(g.j*1h),C:G(g.l*1i)-G(g.c*1i),J:G(g.j*1h)-G(g.f*1h)}};m 2t(c,f,l,j,2V){1o 1i=2V||25,1h=2V||24;g={c:G(c/1i),f:G(f/1h),l:G(l/1i),j:G(j/1h)};g.C=(l=11(g.l))-(c=11(g.c));g.J=(j=11(g.j))-(f=11(g.f))};m 1c(){a(!L.C()){v}1g={D:G(L.2n().D),q:G(L.2n().q)};12=L.C();U=L.J();a($().4y=="1.3.2"&&$.1l.33&&1B=="26"){1g.q+=F(V.3E.2l,$("1r").2l());1g.D+=F(V.3E.2m,$("1r").2m())}1f=$.4x(1n.r("1p"),["1A","4w"])+1?{D:G(1n.2n().D)-1n.2m(),q:G(1n.2n().q)-1n.2l()}:1B=="26"?{D:$(V).2m(),q:$(V).2l()}:{D:0,q:0};H=11(0);q=1m(0)};m 1s(3B){a(!1H){v}A.r({D:11(g.c),q:1m(g.f)}).u(1k).C(w=g.C).J(h=g.J);1k.u(I).u(E).r({D:0,q:0});I.C(F(w-I.2U()+I.3z(),0)).J(F(h-I.3D()+I.4v(),0));$(B[0]).r({D:H,q:q,C:g.c,J:U});$(B[1]).r({D:H+g.c,q:q,C:w,J:g.f});$(B[2]).r({D:H+g.l,q:q,C:12-g.l,J:U});$(B[3]).r({D:H+g.c,q:q+g.j,C:w,J:U-g.j});w-=E.2U();h-=E.3D();2H(E.3n){15 8:$(E[4]).r({D:w/2});$(E[5]).r({D:w,q:h/2});$(E[6]).r({D:w/2,q:h});$(E[7]).r({q:h/2});15 4:E.3C(1,3).r({D:w});E.3C(2,4).r({q:h})}a(3B!==Y){a($.R.1Y!=2L){$(V).T($.R.1Y,$.R.3A)}a(b.1J){$(V)[$.R.1Y]($.R.3A=2L)}}a($.1l.1X&&I.2U()-I.3z()==2){I.r("3y",0);3t(m(){I.r("3y","4u")},0)}};m 1Z(2T,2p){b.1G?2T.4t(b.1G,2p):2T.1t()};m 1d(2S){1o x=19(1y(2S))-g.c,y=18(1x(2S))-g.f;a(!2k){1c();2k=1a;A.1j("4s",m(){2k=Y})}N="";a(b.2r){a(y<=1M){N="n"}Z{a(y>=g.J-1M){N="s"}}a(x<=1M){N+="w"}Z{a(x>=g.C-1M){N+="e"}}}A.r("2R",N?N+"-17":b.1U?"4r":"");a(1D){1D.4q()}};m 2O(4p){$("1r").r("2R","");a(b.4o||g.C*g.J==0){1Z(A.u(B),m(){$(Q).1t()})}b.1R(X,14());$(V).T("O",2f);A.O(1d)};m 2v(1L){a(1L.2K!=1){v Y}1c();a(N){$("1r").r("2R",N+"-17");c=11(g[/w/.2h(N)?"l":"c"]);f=1m(g[/n/.2h(N)?"j":"f"]);$(V).O(2f).1j("1K",2O);A.T("O",1d)}Z{a(b.1U){2e=H+g.c-1y(1L);2d=q+g.f-1x(1L);A.T("O",1d);$(V).O(2P).1j("1K",m(){b.1R(X,14());$(V).T("O",2P);A.O(1d)})}Z{L.1F(1L)}}v Y};m 29(){l=F(H,M(H+12,c+W(j-f)*P*(l>c||-1)));j=G(F(q,M(q+U,f+W(l-c)/P*(j>f||-1))));l=G(l)};m 2a(){j=F(q,M(q+U,f+W(l-c)/P*(j>f||-1)));l=G(F(H,M(H+12,c+W(j-f)*P*(l>c||-1))));j=G(j)};m 28(){a(W(l-c)<b.2j){l=c-b.2j*(l<c||-1);a(l<H){c=H+b.2j}Z{a(l>H+12){c=H+12-b.2j}}}a(W(j-f)<b.2i){j=f-b.2i*(j<f||-1);a(j<q){f=q+b.2i}Z{a(j>q+U){f=q+U-b.2i}}}l=F(H,M(l,H+12));j=F(q,M(j,q+U));a(P){a(W(l-c)/P>W(j-f)){2a()}Z{29()}}a(W(l-c)>b.3x){l=c-b.3x*(l<c||-1);a(P){2a()}}a(W(j-f)>b.3w){j=f-b.3w*(j<f||-1);a(P){29()}}g={c:19(M(c,l)),l:19(F(c,l)),f:18(M(f,j)),j:18(F(f,j)),C:W(l-c),J:W(j-f)};1s();b.1S(X,14())};m 2f(2Q){l=N==""||/w|e/.2h(N)||P?1y(2Q):11(g.l);j=N==""||/n|s/.2h(N)||P?1x(2Q):1m(g.j);28();v Y};m 1w(3v,3u){l=(c=3v)+g.C;j=(f=3u)+g.J;g=$.1V(g,{c:19(c),f:18(f),l:19(l),j:18(j)});1s();b.1S(X,14())};m 2P(2g){c=F(H,M(2e+1y(2g),H+12-g.C));f=F(q,M(2d+1x(2g),q+U-g.J));1w(c,f);2g.4n();v Y};m 2N(){1c();l=c;j=f;28();N="";a(B.1Q(":4m(:4l)")){A.u(B).1t().2w(b.1G||0)}1H=1a;$(V).T("1K",2M).O(2f).1j("1K",2O);A.T("O",1d);b.31(X,14())};m 2M(){$(V).T("O",2N);1Z(A.u(B));g={c:19(c),f:18(f),l:19(c),j:18(f),C:0,J:0};b.1S(X,14());b.1R(X,14())};m 2u(2c){a(2c.2K!=1||B.1Q(":4k")){v Y}1c();2e=c=1y(2c);2d=f=1x(2c);$(V).1j("O",2N).1j("1K",2M);v Y};m 1E(){35(Y)};m 2q(){2x=1a;A.u(B).r({30:""});a(b.2y){1H=1a;1c();1s();A.u(B).1t().2w(b.1G||0)}3t(m(){b.32(X,14())},0)};1o 2L=m(13){1o k=b.1J,d,t,2G=13.4j||13.2K;d=!1u(k.2I)&&(13.2b||13.3q.2b)?k.2I:!1u(k.22)&&13.3r?k.22:!1u(k.23)&&13.3s?k.23:!1u(k.2J)?k.2J:10;a(k.2J=="17"||(k.23=="17"&&13.3s)||(k.22=="17"&&13.3r)||(k.2I=="17"&&(13.2b||13.3q.2b))){2H(2G){15 37:d=-d;15 39:t=F(c,l);c=M(c,l);l=F(t+d,c);a(P){2a()}1v;15 38:d=-d;15 40:t=F(f,j);f=M(f,j);j=F(t+d,f);a(P){29()}1v;3p:v}28()}Z{c=M(c,l);f=M(f,j);2H(2G){15 37:1w(F(c-d,H),f);1v;15 38:1w(c,F(f-d,q));1v;15 39:1w(c+M(d,12-19(l)),f);1v;15 40:1w(c,f+M(d,U-18(j)));1v;3p:v}}v Y};m 1I(3o,2F){3k(27 4i 2F){a(b[27]!==1O){3o.r(2F[27],b[27])}}};m 2s(K){a(K.1T){(1n=$(K.1T)).3e(A.u(B))}b=$.1V(b,K);1c();$p=L;3m($p.3n&&!$p.1Q("1r")){a(!1u($p.r("z-2E"))&&$p.r("z-2E")>1b){1b=$p.r("z-2E")}a($p.r("1p")=="26"){1B="26"}$p=$p.1T()}a(!1u(b.1q)){1b=b.1q}a(K.2D!=3l){E.4h();E=$([]);i=K.2D?K.2D=="4g"?4:8:0;3m(i--){E=E.u(S())}E.21(b.1C+"-4f").r({1p:"1A",4e:0,1q:1b+1||1});a(!4d(E.r("C"))){E.C(5).J(5)}a(o=b.2C){E.r({2C:o,2z:"3h"})}1I(E,{3i:"2B-20",3g:"2A-20",3j:"1e"})}25=b.4c/12||1;24=b.4b/U||1;a(K.c!=3l){2t(K.c,K.f,K.l,K.j);K.2y=!K.1t}a(K.1J){b.1J=$.1V({23:1,22:"17"},K.1J)}B.21(b.1C+"-4a");1k.21(b.1C+"-49");3k(i=0;i++<4;){$(I[i-1]).21(b.1C+"-2B"+i)}1I(1k,{48:"2A-20",47:"1e"});1I(I,{3j:"1e",2C:"2B-C"});1I(B,{46:"2A-20",45:"1e"});a(o=b.3i){$(I[0]).r({2z:"3h",3f:o})}a(o=b.3g){$(I[1]).r({2z:"44",3f:o})}A.3e(1k.u(I).u(E).u(1D));a($.1l.1X){a(o=B.r("3d").3c(/1e=([0-9]+)/)){B.r("1e",o[1]/1W)}a(o=I.r("3d").3c(/1e=([0-9]+)/)){I.r("1e",o[1]/1W)}}a(K.1t){1Z(A.u(B))}Z{a(K.2y&&2x){1H=1a;A.u(B).2w(b.1G||0);1s()}}P=(d=(b.43||"").42(/:/))[0]/d[1];a(b.1P||b.1z===Y){A.T("O",1d).T("1F",2v);L.u(B).T("1F",2u);$(3b).T("17",1E);L.u(L.3a()).T("36",1E)}Z{a(b.1z||b.1P===Y){a(b.2r||b.1U){A.O(1d).1F(2v)}a(!b.41){L.u(B).1F(2u)}$(3b).17(1E);L.u(L.3a()).36(1E)}}b.1z=b.1P=1O};Q.3Z=m(){v b};Q.2X=2s;Q.3Y=14;Q.3X=2t;Q.3W=m 35(34){1c();1s(34);c=11(g.c);f=1m(g.f);l=11(g.l);j=1m(g.j)};a($.1l.1X){L.3V("3U","3T")}$.R.1Y=$.1l.1X||$.1l.33?"3S":"3R";a($.1l.3Q){1D=S().r({C:"1W%",J:"1W%",1p:"1A",1q:1b+2||2})}2s(b=$.1V({1C:"3P",1U:1a,2r:1a,1T:"1r",32:m(){},31:m(){},1S:m(){},1R:m(){}},b));A.u(B).r({30:"2Z",1p:1B,3O:"2Z",1q:1b||"0"});A.r({1q:1b+2||2});1k.u(I).r({1p:"1A"});X.2Y||X.3N=="2Y"||!L.1Q("3M")?2q():L.1j("3L",2q)};$.2p.R=m(16){16=16||{};Q.3K(m(){a($(Q).1N("R")){$(Q).1N("R").2X(16)}Z{a(16.1z===1O&&16.1P===1O){16.1z=1a}$(Q).1N("R",3J $.R(Q,16))}});a(16.3I){v $(Q).1N("R")}v Q}})(3H);',62,290,'||||||||||if|_7|x1|||y1|_20|||y2||x2|function||||top|css|||add|return|||||_a|_d|width|left|_e|_2|_4|_10|_c|height|_4d|_8|_3|_1d|mousemove|_1e|this|imgAreaSelect|_5|unbind|_13|document|_1|_6|false|else||_22|_12|_48|_28|case|_4f|resize|_25|_24|true|_16|_2c|_32|opacity|_15|_11|sy|sx|one|_b|browser|_23|_14|var|position|zIndex|body|_2d|hide|isNaN|break|_3e|evY|evX|enable|absolute|_17|classPrefix|_f|_46|mousedown|fadeSpeed|_1f|_49|keys|mouseup|_38|_1c|data|undefined|disable|is|onSelectEnd|onSelectChange|parent|movable|extend|100|msie|keyPress|_30|color|addClass|ctrl|shift|_1b|_1a|fixed|option|_3c|_3a|_3b|altKey|_45|_19|_18|_36|_41|test|minHeight|minWidth|_21|scrollTop|scrollLeft|offset|Math|fn|_47|resizable|_4c|_2a|_44|_37|fadeIn|_9|show|borderStyle|background|border|borderWidth|handles|index|_4b|key|switch|alt|arrows|which|_2f|_43|_42|_34|_39|_3d|cursor|_33|_31|outerWidth|_2b|_29|setOptions|complete|hidden|visibility|onSelectStart|onInit|safari|_4e|doUpdate|scroll||||parents|window|match|filter|append|borderColor|borderColor2|solid|borderColor1|borderOpacity|for|null|while|length|_4a|default|originalEvent|ctrlKey|shiftKey|setTimeout|_40|_3f|maxHeight|maxWidth|margin|innerWidth|onKeyPress|_2e|slice|outerHeight|documentElement|_27|_26|jQuery|instance|new|each|load|img|readyState|overflow|imgareaselect|opera|keypress|keydown|on|unselectable|attr|update|setSelection|getSelection|getOptions||persistent|split|aspectRatio|dashed|outerOpacity|outerColor|selectionOpacity|selectionColor|selection|outer|imageHeight|imageWidth|parseInt|fontSize|handle|corners|remove|in|keyCode|animated|visible|not|preventDefault|autoHide|_35|toggle|move|mouseout|fadeOut|auto|innerHeight|relative|inArray|jquery|pageY|pageX|div|round|min|max|abs'.split('|')))
©
2018. | Recode by D7net