11 lines
31 KiB
JavaScript
11 lines
31 KiB
JavaScript
|
/*
|
||
|
* colorPicker, JavaScript Color Picker (one-file version)
|
||
|
* http://dematte.at/colorPicker
|
||
|
*
|
||
|
* Copyright 2011 by Peter Dematté
|
||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||
|
* @version 0.91
|
||
|
* @created 2010-11-03
|
||
|
* @updated 2011-07-13
|
||
|
* Date: Mon Aug 15 12:02:56 2011 -0100
|
||
|
*/eval(function(p,i,c,k,e,r){e=function(c){return(c<i?"":e(parseInt(c/i)))+((c=c%i)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('1d 1F(ae,i,f,J,aa,U,o,v,S,Q,t,ag,m,C,W,q,c,V){1q Z=1F,i=i||Z.1g||"B",f=f||Z.3a||4,J=J!=1X?J:Z.7u!=1X?Z.7u:1h,aa=aa!=1X?aa:Z.6I!=1X?Z.6I:1h,U=U!=1X?U:Z.76!=1X?Z.76:1h,o=o!=1X?o:Z.75!=1X?Z.75:1h,v=v!=1X?v:Z.74!=1X?Z.74:1h,S=S||Z.8v||0,Q=Q||Z.8x||3,t=Z.8G||["1v","1s"],ag=ag||Z.8B||1C,m=m||Z.8D||"",C=C||Z.8i||[79,0,0],W=W||Z.8j||2,q=q!=1X?q:Z.4h!=1X?Z.4h:15,c=c||Z.8X||0,V=V||Z.94||1f,Z=1F.cP,Y,ac,b,G,D=1,B=1,H,R,O,N,u,g=7j.95.6x().1Q(/(97|91)/)!==-1,s=1f.92&&1f.93,n=(!Z)?1d(ao){1q ah=1f.3A("8U"),aq=1f.4i("11"),ap=1f.4i("5O"),x=1f.4i("1Y"),au=s&&1f.8N,ay=s&&!1f.4w,aw=s&&!ay&&!2n.8I,aB,aC,aj,al,am,ax=\'<11 18="2B"><1O 18="4J" 1U="" /><11 18="4q"></11><11 18="3p"></11><11 18="3r"></11><11 18="2P"></11><11 18="3x"></11><11 18="3t"></11><11 18="3n"><11 18="8J"></11><21 18="8R"></21><21 18="5e"></21><11 18="5a"></11><21 18="2p"></21><21 18="8S"></21><21 18="7p"></21><11 18="7r"></11><11 18="2F"></11><11 18="3c"></11><21 18="4j"></21></11><11 18="25"><11 18="5p"></11><11 18="7b"></11><11 18="5q 4N"></11><11 18="7g"></11><11 18="5s"></11><11 18="7f"></11><11 18="5n 4N"></11><11 18="7e"></11><11 18="5k"></11><11 18="2q"></11></11><11 18="20"><11 18="2M"><11 18="8T 1T">H</11><1O 1U="1K" 1B="6K" 1n="0" 2Q="3" /><11 18="8O 1Z">&8P;</11><11 18="8Q 1T">S</11><1O 1U="1K" 1B="6L" 1n="0" 2Q="3" /><11 18="7N 1Z">%</11><11 18="7R 1T">B</11><1O 1U="1K" 1B="6M" 1n="0" 2Q="3" /><11 18="7A 1Z">%</11></11><11 18="2U"><11 18="7C 1T">R</11><1O 1U="1K" 1B="6N" 1n="0" 2Q="3" /><11 18="7B 2K">&4Y;</11><11 18="8a 1T">G</11><1O 1U="1K" 1B="6O" 1n="0" 2Q="3" /><11 18="8b 2K">&4Y;</11><11 18="86 2K">B</11><1O 1U="1K" 1B="6P" 1n="0" 2Q="3" /><11 18="88 2K">&4Y;</11></11><11 18="3N"><11 18="8g 1Z">C</11><1O 1U="1K" 1B="6Q" 1n="0" 2A="2A" /><11 18="7X 1Z">%</11><11 18="7W 1Z">M</11><1O 1U="1K" 1B="6U" 1n="0" 2A="2A" /><11 18="7U 1Z">%</11><11 18="7Z 1Z">Y</11><1O 1U="1K" 1B="6V" 1n="0" 2A="2A" /><11 18="84 1Z">%</11><11 18="82 1Z">K</11><1O 1U="1K" 1B="6W" 1n="1E" 2A="2A" /><11 18="81 1Z">%</11></11><11 18="3Q"><11 18="a7 1Z">#</11><1O 1U="1K" 1B="2T" 1n="b1" 2Q="6" /><11 18="5m 1T">W</11></11><11 18="3V"></11><11 18="3M"></11><11 18="4z"><11 18="4d 1T"></11><11 18="4S 1T"></11><11 18="4A 1T">b6</11><11 18="4x 1T">b4</11></11></11><11 18="2I"></11><11 18="2E"></11><11 18="5o"><11 18="b2"></11></11></11>\',aE=\'.2B{14:1I;1b:b3;1a:9Y;1K-3z:1s}.4q,.3p,.3r,.2P{14:1I;1b:2l;1a:2l;12:1y(2i.1G) 1r 1i}.3p{1r:0}.3r{1v:0}.2P{1v:0;1r:0}.3x,.3t{14:1I;1b:1E%;1a:1E%;12-1o:#5t}.3x{1s:1W;1b:9Z}.3t{1i:1W;1a:9X}.3n{14:1I;1s:2u;1i:2u;1b:67;1a:2a;6G:6C}.3u,.31,.3d,.3f,.36,.35,.4W,.2D,.2C,.3l,.29,.2W,.3i,.2d,.4e{14:1I;1b:2a;1a:2a}.3u,.31,.3d,.3f,.36,.35{12:1y(6j.1G)}.3J,.41{14:1I;1b:3m;1a:3m;3D-3a:43;12:1y(2i.1G)}.41{12-14:0 9V}.3J{12-14:0 3m}.2p{14:1I;1b:2a;1a:2a;3E:7c}.6h{3E:1y(4c.5d),7c}.2o,.3X,.49,.47,.2t,.3U,.3L,.3H,.2v,.3R,.3T,.3O,.3P,.4U,.2e,.52,.28,.2L{14:1I;1r:43;1b:3W;1a:2a;12:1y(2N.1G)}.4H,.4j{14:1I;1r:0;1b:3W;1a:2a}.2r,.2V,.2j,.2X{14:1I;1b:1W;1a:4r;3D-3a:43;1r:0;12:1y(2i.1G)}.2r,.2j{1r:50}.2j{12-14:-27 0}.2r{12-14:-4y 0}.2X{12-14:0 0}.2V{12-14:-3m 0}.25{14:1I;1s:2u;1v:2u;1b:9W;1a:3W;1M:6F-5l;6E-3z:1i}.5p,.7b,.5q,.7g,.5s,.7f,.5n,.7e,.5k,.2q{1b:3W;1a:4k;4L:1s;12-1o:#4n;2O-1r:1t;2O-1i:1t}.5p,.5q,.5s,.5n,.5k{1b:4k}.2q{1a:3W;2O-1i:0;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