633. File Comparison Report

Produced on Mon May 12 13:06:30 2008 UTC. This report uses XHTML and CSS2, and is best viewed with a reasonably standards compliant browser such as the latest version of Firefox or Internet Explorer. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

633.1 Files compared

# Location File Last Modified
1 Dolphin-v.6.0.5\plugins\tiny_mce\themes\advanced\jscripts color_picker.js Thu Sep 20 08:59:20 2007 UTC
2 Mon May 12 13:06:30 2008 UTC

633.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 0 0
Changed 0 0
Inserted 0 0
Removed 1 240

633.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

633.4 Active regular expressions

No regular expressions were active.

633.5 Comparison detail

1   var detail  = 50, str hex = "012 3456789abc def", i, i sMouseDown  = false,  isMouseOve r = false;    
2      
3   var colors  = new Arr ay(    
4       "#0000 00","#0000 33","#0000 66","#0000 99","#0000 cc","#0000 ff","#3300 00","#3300 33",    
5       "#3300 66","#3300 99","#3300 cc","#3300 ff","#6600 00","#6600 33","#6600 66","#6600 99",    
6       "#6600 cc","#6600 ff","#9900 00","#9900 33","#9900 66","#9900 99","#9900 cc","#9900 ff",    
7       "#cc00 00","#cc00 33","#cc00 66","#cc00 99","#cc00 cc","#cc00 ff","#ff00 00","#ff00 33",    
8       "#ff00 66","#ff00 99","#ff00 cc","#ff00 ff","#0033 00","#0033 33","#0033 66","#0033 99",    
9       "#0033 cc","#0033 ff","#3333 00","#3333 33","#3333 66","#3333 99","#3333 cc","#3333 ff",    
10       "#6633 00","#6633 33","#6633 66","#6633 99","#6633 cc","#6633 ff","#9933 00","#9933 33",    
11       "#9933 66","#9933 99","#9933 cc","#9933 ff","#cc33 00","#cc33 33","#cc33 66","#cc33 99",    
12       "#cc33 cc","#cc33 ff","#ff33 00","#ff33 33","#ff33 66","#ff33 99","#ff33 cc","#ff33 ff",    
13       "#0066 00","#0066 33","#0066 66","#0066 99","#0066 cc","#0066 ff","#3366 00","#3366 33",    
14       "#3366 66","#3366 99","#3366 cc","#3366 ff","#6666 00","#6666 33","#6666 66","#6666 99",    
15       "#6666 cc","#6666 ff","#9966 00","#9966 33","#9966 66","#9966 99","#9966 cc","#9966 ff",    
16       "#cc66 00","#cc66 33","#cc66 66","#cc66 99","#cc66 cc","#cc66 ff","#ff66 00","#ff66 33",    
17       "#ff66 66","#ff66 99","#ff66 cc","#ff66 ff","#0099 00","#0099 33","#0099 66","#0099 99",    
18       "#0099 cc","#0099 ff","#3399 00","#3399 33","#3399 66","#3399 99","#3399 cc","#3399 ff",    
19       "#6699 00","#6699 33","#6699 66","#6699 99","#6699 cc","#6699 ff","#9999 00","#9999 33",    
20       "#9999 66","#9999 99","#9999 cc","#9999 ff","#cc99 00","#cc99 33","#cc99 66","#cc99 99",    
21       "#cc99 cc","#cc99 ff","#ff99 00","#ff99 33","#ff99 66","#ff99 99","#ff99 cc","#ff99 ff",    
22       "#00cc 00","#00cc 33","#00cc 66","#00cc 99","#00cc cc","#00cc ff","#33cc 00","#33cc 33",    
23       "#33cc 66","#33cc 99","#33cc cc","#33cc ff","#66cc 00","#66cc 33","#66cc 66","#66cc 99",    
24       "#66cc cc","#66cc ff","#99cc 00","#99cc 33","#99cc 66","#99cc 99","#99cc cc","#99cc ff",    
25       "#cccc 00","#cccc 33","#cccc 66","#cccc 99","#cccc cc","#cccc ff","#ffcc 00","#ffcc 33",    
26       "#ffcc 66","#ffcc 99","#ffcc cc","#ffcc ff","#00ff 00","#00ff 33","#00ff 66","#00ff 99",    
27       "#00ff cc","#00ff ff","#33ff 00","#33ff 33","#33ff 66","#33ff 99","#33ff cc","#33ff ff",    
28       "#66ff 00","#66ff 33","#66ff 66","#66ff 99","#66ff cc","#66ff ff","#99ff 00","#99ff 33",    
29       "#99ff 66","#99ff 99","#99ff cc","#99ff ff","#ccff 00","#ccff 33","#ccff 66","#ccff 99",    
30       "#ccff cc","#ccff ff","#ffff 00","#ffff 33","#ffff 66","#ffff 99","#ffff cc","#ffff ff"    
31   );    
32      
33   var named  = {    
34       '#F0F8 FF':'Alice Blue','#FA EBD7':'Ant iqueWhite' ,'#00FFFF' :'Aqua','# 7FFFD4':'A quamarine' ,'#F0FFFF' :'Azure',' #F5F5DC':' Beige',    
35       '#FFE4 C4':'Bisqu e','#00000 0':'Black' ,'#FFEBCD' :'Blanched Almond','# 0000FF':'B lue','#8A2 BE2':'Blue Violet','# A52A2A':'B rown',    
36       '#DEB8 87':'Burly Wood','#5F 9EA0':'Cad etBlue','# 7FFF00':'C hartreuse' ,'#D2691E' :'Chocolat e','#FF7F5 0':'Coral' ,'#6495ED' :'Cornflow erBlue',    
37       '#FFF8 DC':'Corns ilk','#DC1 43C':'Crim son','#00F FFF':'Cyan ','#00008B ':'DarkBlu e','#008B8 B':'DarkCy an','#B886 0B':'DarkG oldenRod',    
38       '#A9A9 A9':'DarkG ray','#A9A 9A9':'Dark Grey','#00 6400':'Dar kGreen','# BDB76B':'D arkKhaki', '#8B008B': 'DarkMagen ta','#556B 2F':'DarkO liveGreen' ,    
39       '#FF8C 00':'Darko range','#9 932CC':'Da rkOrchid', '#8B0000': 'DarkRed', '#E9967A': 'DarkSalmo n','#8FBC8 F':'DarkSe aGreen','# 483D8B':'D arkSlateBl ue',    
40       '#2F4F 4F':'DarkS lateGray', '#2F4F4F': 'DarkSlate Grey','#00 CED1':'Dar kTurquoise ','#9400D3 ':'DarkVio let','#FF1 493':'Deep Pink','#00 BFFF':'Dee pSkyBlue',    
41       '#6969 69':'DimGr ay','#6969 69':'DimGr ey','#1E90 FF':'Dodge rBlue','#B 22222':'Fi reBrick',' #FFFAF0':' FloralWhit e','#228B2 2':'Forest Green',    
42       '#FF00 FF':'Fuchs ia','#DCDC DC':'Gains boro','#F8 F8FF':'Gho stWhite',' #FFD700':' Gold','#DA A520':'Gol denRod','# 808080':'G ray','#808 080':'Grey ',    
43       '#0080 00':'Green ','#ADFF2F ':'GreenYe llow','#F0 FFF0':'Hon eyDew','#F F69B4':'Ho tPink','#C D5C5C':'In dianRed',' #4B0082':' Indigo','# FFFFF0':'I vory',    
44       '#F0E6 8C':'Khaki ','#E6E6FA ':'Lavende r','#FFF0F 5':'Lavend erBlush',' #7CFC00':' LawnGreen' ,'#FFFACD' :'LemonChi ffon','#AD D8E6':'Lig htBlue',    
45       '#F080 80':'Light Coral','#E 0FFFF':'Li ghtCyan',' #FAFAD2':' LightGolde nRodYellow ','#D3D3D3 ':'LightGr ay','#D3D3 D3':'Light Grey','#90 EE90':'Lig htGreen',    
46       '#FFB6 C1':'Light Pink','#FF A07A':'Lig htSalmon', '#20B2AA': 'LightSeaG reen','#87 CEFA':'Lig htSkyBlue' ,'#778899' :'LightSla teGray','# 778899':'L ightSlateG rey',    
47       '#B0C4 DE':'Light SteelBlue' ,'#FFFFE0' :'LightYel low','#00F F00':'Lime ','#32CD32 ':'LimeGre en','#FAF0 E6':'Linen ','#FF00FF ':'Magenta ','#800000 ':'Maroon' ,    
48       '#66CD AA':'Mediu mAquaMarin e','#0000C D':'Medium Blue','#BA 55D3':'Med iumOrchid' ,'#9370D8' :'MediumPu rple','#3C B371':'Med iumSeaGree n','#7B68E E':'Medium SlateBlue' ,    
49       '#00FA 9A':'Mediu mSpringGre en','#48D1 CC':'Mediu mTurquoise ','#C71585 ':'MediumV ioletRed', '#191970': 'MidnightB lue','#F5F FFA':'Mint Cream','#F FE4E1':'Mi styRose',' #FFE4B5':' Moccasin',    
50       '#FFDE AD':'Navaj oWhite','# 000080':'N avy','#FDF 5E6':'OldL ace','#808 000':'Oliv e','#6B8E2 3':'OliveD rab','#FFA 500':'Oran ge','#FF45 00':'Orang eRed','#DA 70D6':'Orc hid',    
51       '#EEE8 AA':'PaleG oldenRod', '#98FB98': 'PaleGreen ','#AFEEEE ':'PaleTur quoise','# D87093':'P aleVioletR ed','#FFEF D5':'Papay aWhip','#F FDAB9':'Pe achPuff',    
52       '#CD85 3F':'Peru' ,'#FFC0CB' :'Pink','# DDA0DD':'P lum','#B0E 0E6':'Powd erBlue','# 800080':'P urple','#F F0000':'Re d','#BC8F8 F':'RosyBr own','#416 9E1':'Roya lBlue',    
53       '#8B45 13':'Saddl eBrown','# FA8072':'S almon','#F 4A460':'Sa ndyBrown', '#2E8B57': 'SeaGreen' ,'#FFF5EE' :'SeaShell ','#A0522D ':'Sienna' ,'#C0C0C0' :'Silver',    
54       '#87CE EB':'SkyBl ue','#6A5A CD':'Slate Blue','#70 8090':'Sla teGray','# 708090':'S lateGrey', '#FFFAFA': 'Snow','#0 0FF7F':'Sp ringGreen' ,    
55       '#4682 B4':'Steel Blue','#D2 B48C':'Tan ','#008080 ':'Teal',' #D8BFD8':' Thistle',' #FF6347':' Tomato','# 40E0D0':'T urquoise', '#EE82EE': 'Violet',    
56       '#F5DE B3':'Wheat ','#FFFFFF ':'White', '#F5F5F5': 'WhiteSmok e','#FFFF0 0':'Yellow ','#9ACD32 ':'YellowG reen'    
57   };    
58      
59   function i nit() {    
60       var in putColor =  convertRG BToHex(tin yMCE.getWi ndowArg('i nput_color '));    
61      
62       if (ti nyMCE.isMS IE)    
63           ti nyMCEPopup .resizeToI nnerSize() ;    
64      
65       genera tePicker() ;    
66      
67       if (in putColor)  {    
68           ch angeFinalC olor(input Color);    
69      
70           co l = conver tHexToRGB( inputColor );    
71      
72           if  (col)    
73                updateLi ght(col.r,  col.g, co l.b);    
74       }    
75   }    
76      
77   function i nsertActio n() {    
78       var co lor = docu ment.getEl ementById( "color").v alue;    
79      
80       tinyMC EPopup.exe cCommand(t inyMCE.get WindowArg( 'command') , false, c olor);    
81       tinyMC EPopup.clo se();    
82   }    
83      
84   function s howColor(c olor, name ) {    
85       if (na me)    
86           do cument.get ElementByI d("colorna me").inner HTML = nam e;    
87      
88       docume nt.getElem entById("p review").s tyle.backg roundColor  = color;    
89       docume nt.getElem entById("c olor").val ue = color ;    
90   }    
91      
92   function c onvertRGBT oHex(col)  {    
93       var re  = new Reg Exp("rgb\\ s*\\(\\s*( [0-9]+).*, \\s*([0-9] +).*,\\s*( [0-9]+).*\ \)", "gi") ;    
94      
95       if (!c ol)    
96           re turn col;    
97      
98       var rg b = col.re place(re,  "$1,$2,$3" ).split(', ');    
99       if (rg b.length = = 3) {    
100           r  = parseInt (rgb[0]).t oString(16 );    
101           g  = parseInt (rgb[1]).t oString(16 );    
102           b  = parseInt (rgb[2]).t oString(16 );    
103      
104           r  = r.length  == 1 ? '0 ' + r : r;    
105           g  = g.length  == 1 ? '0 ' + g : g;    
106           b  = b.length  == 1 ? '0 ' + b : b;    
107      
108           re turn "#" +  r + g + b ;    
109       }    
110      
111       return  col;    
112   }    
113      
114   function c onvertHexT oRGB(col)  {    
115       if (co l.indexOf( '#') != -1 ) {    
116           co l = col.re place(new  RegExp('[^ 0-9A-F]',  'gi'), '') ;    
117      
118           r  = parseInt (col.subst ring(0, 2) , 16);    
119           g  = parseInt (col.subst ring(2, 4) , 16);    
120           b  = parseInt (col.subst ring(4, 6) , 16);    
121      
122           re turn {r :  r, g : g,  b : b};    
123       }    
124      
125       return  null;    
126   }    
127      
128   function g eneratePic ker() {    
129       var el  = documen t.getEleme ntById('li ght'), h =  '', i;    
130      
131       for (i  = 0; i <  detail; i+ +){    
132           h  += '<div i d="gs'+i+' " style="b ackground- color:#000 000; width :15px; hei ght:3px; b order-styl e:none; bo rder-width :0px;"'    
133           +  ' onclick= "changeFin alColor(th is.style.b ackgroundC olor)"'    
134           +  ' onmoused own="isMou seDown = t rue; retur n false;"'    
135           +  ' onmouseu p="isMouse Down = fal se;"'    
136           +  ' onmousem ove="if (i sMouseDown  && isMous eOver) cha ngeFinalCo lor(this.s tyle.backg roundColor ); return  false;"'    
137           +  ' onmouseo ver="isMou seOver = t rue;"'    
138           +  ' onmouseo ut="isMous eOver = fa lse;"'    
139           +  '></div>';    
140       }    
141      
142       el.inn erHTML = h ;    
143   }    
144      
145   function g enerateWeb Colors() {    
146       var el  = documen t.getEleme ntById('we bcolors'),  h = '', i ;    
147      
148       if (el .className  == 'gener ated')    
149           re turn;    
150      
151       h += ' <table bor der="0" ce llspacing= "1" cellpa dding="0"> '    
152           +  '<tr>';    
153      
154       for (i =0; i<colo rs.length;  i++) {    
155           h  += '<td bg color="' +  colors[i]  + '">'    
156                + '<a hr ef="javasc ript:inser tAction(); " onfocus= "showColor (\'' + col ors[i] +   '\');" onm ouseover=" showColor( \'' + colo rs[i] +  ' \');">'    
157                + '<img  border="0"  src="imag es/spacer. gif" width ="10" heig ht="10" ti tle="' + c olors[i] +   '" alt=" ' + colors [i] +  '"  /></a></td >';    
158           if  ((i+1) %  18 == 0)    
159                h += '</ tr><tr>';    
160       }    
161      
162       h += ' </table>';    
163      
164       el.inn erHTML = h ;    
165       el.cla ssName = ' generated' ;    
166   }    
167      
168   function g enerateNam edColors()  {    
169       var el  = documen t.getEleme ntById('na medcolors' ), h = '',  n, v, i =  0;    
170      
171       if (el .className  == 'gener ated')    
172           re turn;    
173      
174       for (n  in named)  {    
175           v  = named[n] ;    
176           h  += '<a hre f="javascr ipt:insert Action();"  onmouseov er="showCo lor(\'' +  n +  '\',\ '' + v + ' \');" styl e="backgro und-color:  ' + n + ' "><!-- IE  --></a>'    
177       }    
178      
179       el.inn erHTML = h ;    
180       el.cla ssName = ' generated' ;    
181   }    
182      
183   function d echex(n) {    
184       return  strhex.ch arAt(Math. floor(n /  16)) + str hex.charAt (n % 16);    
185   }    
186      
187   function c omputeColo r(e) {    
188       var x,  y, partWi dth, partD etail, imH eight, r,  g, b, coef , i, final Coef, fina lR, finalG , finalB;    
189      
190       x = e. offsetX ?  e.offsetX  : (e.targe t ? e.clie ntX - e.ta rget.x : 0 );    
191       y = e. offsetY ?  e.offsetY  : (e.targe t ? e.clie ntY - e.ta rget.y : 0 );    
192      
193       partWi dth = docu ment.getEl ementById( 'colorpick er').width  / 6;    
194       partDe tail = det ail / 2;    
195       imHeig ht = docum ent.getEle mentById(' colorpicke r').height ;    
196      
197       r = (x  >= 0)*(x  < partWidt h)*255 + ( x >= partW idth)*(x <  2*partWid th)*(2*255  - x * 255  / partWid th) + (x > = 4*partWi dth)*(x <  5*partWidt h)*(-4*255  + x * 255  / partWid th) + (x > = 5*partWi dth)*(x <  6*partWidt h)*255;    
198       g = (x  >= 0)*(x  < partWidt h)*(x * 25 5 / partWi dth) + (x  >= partWid th)*(x < 3 *partWidth )*255 + (x  >= 3*part Width)*(x  < 4*partWi dth)*(4*25 5 - x * 25 5 / partWi dth);    
199       b = (x  >= 2*part Width)*(x  < 3*partWi dth)*(-2*2 55 + x * 2 55 / partW idth) + (x  >= 3*part Width)*(x  < 5*partWi dth)*255 +  (x >= 5*p artWidth)* (x < 6*par tWidth)*(6 *255 - x *  255 / par tWidth);    
200      
201       coef =  (imHeight  - y) / im Height;    
202       r = 12 8 + (r - 1 28) * coef ;    
203       g = 12 8 + (g - 1 28) * coef ;    
204       b = 12 8 + (b - 1 28) * coef ;    
205      
206       change FinalColor ('#' + dec hex(r) + d echex(g) +  dechex(b) );    
207       update Light(r, g , b);    
208   }    
209      
210   function u pdateLight (r, g, b)  {    
211       var i,  partDetai l = detail  / 2, fina lCoef, fin alR, final G, finalB,  color;    
212      
213       for (i =0; i<deta il; i++) {    
214           if  ((i>=0) & & (i<partD etail)) {    
215                finalCoe f = i / pa rtDetail;    
216                finalR =  dechex(25 5 - (255 -  r) * fina lCoef);    
217                finalG =  dechex(25 5 - (255 -  g) * fina lCoef);    
218                finalB =  dechex(25 5 - (255 -  b) * fina lCoef);    
219           }  else {    
220                finalCoe f = 2 - i  / partDeta il;    
221                finalR =  dechex(r  * finalCoe f);    
222                finalG =  dechex(g  * finalCoe f);    
223                finalB =  dechex(b  * finalCoe f);    
224           }    
225      
226           co lor = fina lR + final G + finalB ;    
227      
228           do cument.get ElementByI d('gs' + i ).style.ba ckgroundCo lor = '#'+ color;    
229       }    
230   }    
231      
232   function c hangeFinal Color(colo r) {    
233       if (co lor.indexO f('#') ==  -1)    
234           co lor = conv ertRGBToHe x(color);    
235      
236       docume nt.getElem entById('p review').s tyle.backg roundColor  = color;    
237       docume nt.getElem entById('c olor').val ue = color ;    
238   }    
239      
240   window.foc us();