626. File Comparison Report

Produced on Mon May 12 13:06:29 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.

626.1 Files compared

# Location File Last Modified
1 Mon May 12 13:06:29 2008 UTC
2 Dolphin-v.6.1.0\plugins\tiny_mce\themes\advanced\js color_picker.js Thu Mar 27 13:53:28 2008 UTC

626.2 Comparison summary

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

626.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

626.4 Active regular expressions

No regular expressions were active.

626.5 Comparison detail

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