Make WordPress Core

Changeset 21632


Ignore:
Timestamp:
08/27/2012 11:27:14 PM (14 years ago)
Author:
nacin
Message:

Update jQuery Color Animations plugin to 2.1.0. Props gnarf. fixes #21692.

Location:
trunk/wp-includes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/jquery/jquery.color.js

    r21592 r21632  
    1 /*
    2  * jQuery Color Animations
    3  * Copyright 2007 John Resig
    4  * Released under the MIT and GPL licenses.
     1/*!
     2 * jQuery Color Animations v2.1.0
     3 * http://jquery.com/
     4 *
     5 * Copyright 2012 jQuery Foundation and other contributors
     6 * Released under the MIT license.
     7 * http://jquery.org/license
     8 *
     9 * Date: Fri Aug 24 12:02:24 2012 -0500
    510 */
    6 
    7 (function(jQuery){
    8 
    9     // We override the animation for all of these color styles
    10     jQuery.each(['backgroundColor', 'borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor', 'color', 'outlineColor'], function(i,attr){
    11         jQuery.fx.step[attr] = function(fx){
    12             if ( fx.state == 0 ) {
    13                 fx.start = getColor( fx.elem, attr );
    14                 fx.end = getRGB( fx.end );
    15             }
    16 
    17             fx.elem.style[attr] = "rgb(" + [
    18                 Math.max(Math.min( parseInt((fx.pos * (fx.end[0] - fx.start[0])) + fx.start[0]), 255), 0),
    19                 Math.max(Math.min( parseInt((fx.pos * (fx.end[1] - fx.start[1])) + fx.start[1]), 255), 0),
    20                 Math.max(Math.min( parseInt((fx.pos * (fx.end[2] - fx.start[2])) + fx.start[2]), 255), 0)
    21             ].join(",") + ")";
    22         }
    23     });
    24 
    25     // Color Conversion functions from highlightFade
    26     // By Blair Mitchelmore
    27     // http://jquery.offput.ca/highlightFade/
    28 
    29     // Parse strings looking for color tuples [255,255,255]
    30     function getRGB(color) {
    31         var result;
    32 
    33         // Check if we're already dealing with an array of colors
    34         if ( color && color.constructor == Array && color.length == 3 )
    35             return color;
    36 
    37         // Look for rgb(num,num,num)
    38         if (result = /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(color))
    39             return [parseInt(result[1]), parseInt(result[2]), parseInt(result[3])];
    40 
    41         // Look for rgb(num%,num%,num%)
    42         if (result = /rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(color))
    43             return [parseFloat(result[1])*2.55, parseFloat(result[2])*2.55, parseFloat(result[3])*2.55];
    44 
    45         // Look for #a0b1c2
    46         if (result = /#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(color))
    47             return [parseInt(result[1],16), parseInt(result[2],16), parseInt(result[3],16)];
    48 
    49         // Look for #fff
    50         if (result = /#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(color))
    51             return [parseInt(result[1]+result[1],16), parseInt(result[2]+result[2],16), parseInt(result[3]+result[3],16)];
    52 
    53         // Look for rgba(0, 0, 0, 0) == transparent in Safari 3
    54         if (result = /rgba\(0, 0, 0, 0\)/.exec(color))
    55             return colors['transparent']
    56 
    57         // Otherwise, we're most likely dealing with a named color
    58         return colors[jQuery.trim(color).toLowerCase()];
    59     }
    60 
    61     function getColor(elem, attr) {
    62         var color;
    63 
    64         do {
    65             color = jQuery.curCSS(elem, attr);
    66 
    67             // Keep going until we find an element that has color, or we hit the body
    68             if ( color != '' && color != 'transparent' || jQuery.nodeName(elem, "body") )
    69                 break;
    70 
    71             attr = "backgroundColor";
    72         } while ( elem = elem.parentNode );
    73 
    74         return getRGB(color);
    75     };
    76 
    77     // Some named colors to work with
    78     // From Interface by Stefan Petre
    79     // http://interface.eyecon.ro/
    80 
    81     var colors = {
    82         aqua:[0,255,255],
    83         azure:[240,255,255],
    84         beige:[245,245,220],
    85         black:[0,0,0],
    86         blue:[0,0,255],
    87         brown:[165,42,42],
    88         cyan:[0,255,255],
    89         darkblue:[0,0,139],
    90         darkcyan:[0,139,139],
    91         darkgrey:[169,169,169],
    92         darkgreen:[0,100,0],
    93         darkkhaki:[189,183,107],
    94         darkmagenta:[139,0,139],
    95         darkolivegreen:[85,107,47],
    96         darkorange:[255,140,0],
    97         darkorchid:[153,50,204],
    98         darkred:[139,0,0],
    99         darksalmon:[233,150,122],
    100         darkviolet:[148,0,211],
    101         fuchsia:[255,0,255],
    102         gold:[255,215,0],
    103         green:[0,128,0],
    104         indigo:[75,0,130],
    105         khaki:[240,230,140],
    106         lightblue:[173,216,230],
    107         lightcyan:[224,255,255],
    108         lightgreen:[144,238,144],
    109         lightgrey:[211,211,211],
    110         lightpink:[255,182,193],
    111         lightyellow:[255,255,224],
    112         lime:[0,255,0],
    113         magenta:[255,0,255],
    114         maroon:[128,0,0],
    115         navy:[0,0,128],
    116         olive:[128,128,0],
    117         orange:[255,165,0],
    118         pink:[255,192,203],
    119         purple:[128,0,128],
    120         violet:[128,0,128],
    121         red:[255,0,0],
    122         silver:[192,192,192],
    123         white:[255,255,255],
    124         yellow:[255,255,0],
    125         transparent: [255,255,255]
    126     };
    127 
    128 })(jQuery);
     11(function( jQuery, undefined ) {
     12
     13        var stepHooks = "backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",
     14
     15        // plusequals test for += 100 -= 100
     16        rplusequals = /^([\-+])=\s*(\d+\.?\d*)/,
     17        // a set of RE's that can match strings and generate color tuples.
     18        stringParsers = [{
     19                        re: /rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,
     20                        parse: function( execResult ) {
     21                                return [
     22                                        execResult[ 1 ],
     23                                        execResult[ 2 ],
     24                                        execResult[ 3 ],
     25                                        execResult[ 4 ]
     26                                ];
     27                        }
     28                }, {
     29                        re: /rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,
     30                        parse: function( execResult ) {
     31                                return [
     32                                        execResult[ 1 ] * 2.55,
     33                                        execResult[ 2 ] * 2.55,
     34                                        execResult[ 3 ] * 2.55,
     35                                        execResult[ 4 ]
     36                                ];
     37                        }
     38                }, {
     39                        // this regex ignores A-F because it's compared against an already lowercased string
     40                        re: /#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,
     41                        parse: function( execResult ) {
     42                                return [
     43                                        parseInt( execResult[ 1 ], 16 ),
     44                                        parseInt( execResult[ 2 ], 16 ),
     45                                        parseInt( execResult[ 3 ], 16 )
     46                                ];
     47                        }
     48                }, {
     49                        // this regex ignores A-F because it's compared against an already lowercased string
     50                        re: /#([a-f0-9])([a-f0-9])([a-f0-9])/,
     51                        parse: function( execResult ) {
     52                                return [
     53                                        parseInt( execResult[ 1 ] + execResult[ 1 ], 16 ),
     54                                        parseInt( execResult[ 2 ] + execResult[ 2 ], 16 ),
     55                                        parseInt( execResult[ 3 ] + execResult[ 3 ], 16 )
     56                                ];
     57                        }
     58                }, {
     59                        re: /hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,
     60                        space: "hsla",
     61                        parse: function( execResult ) {
     62                                return [
     63                                        execResult[ 1 ],
     64                                        execResult[ 2 ] / 100,
     65                                        execResult[ 3 ] / 100,
     66                                        execResult[ 4 ]
     67                                ];
     68                        }
     69                }],
     70
     71        // jQuery.Color( )
     72        color = jQuery.Color = function( color, green, blue, alpha ) {
     73                return new jQuery.Color.fn.parse( color, green, blue, alpha );
     74        },
     75        spaces = {
     76                rgba: {
     77                        props: {
     78                                red: {
     79                                        idx: 0,
     80                                        type: "byte"
     81                                },
     82                                green: {
     83                                        idx: 1,
     84                                        type: "byte"
     85                                },
     86                                blue: {
     87                                        idx: 2,
     88                                        type: "byte"
     89                                }
     90                        }
     91                },
     92
     93                hsla: {
     94                        props: {
     95                                hue: {
     96                                        idx: 0,
     97                                        type: "degrees"
     98                                },
     99                                saturation: {
     100                                        idx: 1,
     101                                        type: "percent"
     102                                },
     103                                lightness: {
     104                                        idx: 2,
     105                                        type: "percent"
     106                                }
     107                        }
     108                }
     109        },
     110        propTypes = {
     111                "byte": {
     112                        floor: true,
     113                        max: 255
     114                },
     115                "percent": {
     116                        max: 1
     117                },
     118                "degrees": {
     119                        mod: 360,
     120                        floor: true
     121                }
     122        },
     123        support = color.support = {},
     124
     125        // element for support tests
     126        supportElem = jQuery( "<p>" )[ 0 ],
     127
     128        // colors = jQuery.Color.names
     129        colors,
     130
     131        // local aliases of functions called often
     132        each = jQuery.each;
     133
     134// determine rgba support immediately
     135supportElem.style.cssText = "background-color:rgba(1,1,1,.5)";
     136support.rgba = supportElem.style.backgroundColor.indexOf( "rgba" ) > -1;
     137
     138// define cache name and alpha properties
     139// for rgba and hsla spaces
     140each( spaces, function( spaceName, space ) {
     141        space.cache = "_" + spaceName;
     142        space.props.alpha = {
     143                idx: 3,
     144                type: "percent",
     145                def: 1
     146        };
     147});
     148
     149function clamp( value, prop, allowEmpty ) {
     150        var type = propTypes[ prop.type ] || {};
     151
     152        if ( value == null ) {
     153                return (allowEmpty || !prop.def) ? null : prop.def;
     154        }
     155
     156        // ~~ is an short way of doing floor for positive numbers
     157        value = type.floor ? ~~value : parseFloat( value );
     158
     159        // IE will pass in empty strings as value for alpha,
     160        // which will hit this case
     161        if ( isNaN( value ) ) {
     162                return prop.def;
     163        }
     164
     165        if ( type.mod ) {
     166                // we add mod before modding to make sure that negatives values
     167                // get converted properly: -10 -> 350
     168                return (value + type.mod) % type.mod;
     169        }
     170
     171        // for now all property types without mod have min and max
     172        return 0 > value ? 0 : type.max < value ? type.max : value;
     173}
     174
     175function stringParse( string ) {
     176        var inst = color(),
     177                rgba = inst._rgba = [];
     178
     179        string = string.toLowerCase();
     180
     181        each( stringParsers, function( i, parser ) {
     182                var parsed,
     183                        match = parser.re.exec( string ),
     184                        values = match && parser.parse( match ),
     185                        spaceName = parser.space || "rgba";
     186
     187                if ( values ) {
     188                        parsed = inst[ spaceName ]( values );
     189
     190                        // if this was an rgba parse the assignment might happen twice
     191                        // oh well....
     192                        inst[ spaces[ spaceName ].cache ] = parsed[ spaces[ spaceName ].cache ];
     193                        rgba = inst._rgba = parsed._rgba;
     194
     195                        // exit each( stringParsers ) here because we matched
     196                        return false;
     197                }
     198        });
     199
     200        // Found a stringParser that handled it
     201        if ( rgba.length ) {
     202
     203                // if this came from a parsed string, force "transparent" when alpha is 0
     204                // chrome, (and maybe others) return "transparent" as rgba(0,0,0,0)
     205                if ( rgba.join() === "0,0,0,0" ) {
     206                        jQuery.extend( rgba, colors.transparent );
     207                }
     208                return inst;
     209        }
     210
     211        // named colors
     212        return colors[ string ];
     213}
     214
     215color.fn = jQuery.extend( color.prototype, {
     216        parse: function( red, green, blue, alpha ) {
     217                if ( red === undefined ) {
     218                        this._rgba = [ null, null, null, null ];
     219                        return this;
     220                }
     221                if ( red.jquery || red.nodeType ) {
     222                        red = jQuery( red ).css( green );
     223                        green = undefined;
     224                }
     225
     226                var inst = this,
     227                        type = jQuery.type( red ),
     228                        rgba = this._rgba = [],
     229                        source;
     230
     231                // more than 1 argument specified - assume ( red, green, blue, alpha )
     232                if ( green !== undefined ) {
     233                        red = [ red, green, blue, alpha ];
     234                        type = "array";
     235                }
     236
     237                if ( type === "string" ) {
     238                        return this.parse( stringParse( red ) || colors._default );
     239                }
     240
     241                if ( type === "array" ) {
     242                        each( spaces.rgba.props, function( key, prop ) {
     243                                rgba[ prop.idx ] = clamp( red[ prop.idx ], prop );
     244                        });
     245                        return this;
     246                }
     247
     248                if ( type === "object" ) {
     249                        if ( red instanceof color ) {
     250                                each( spaces, function( spaceName, space ) {
     251                                        if ( red[ space.cache ] ) {
     252                                                inst[ space.cache ] = red[ space.cache ].slice();
     253                                        }
     254                                });
     255                        } else {
     256                                each( spaces, function( spaceName, space ) {
     257                                        var cache = space.cache;
     258                                        each( space.props, function( key, prop ) {
     259
     260                                                // if the cache doesn't exist, and we know how to convert
     261                                                if ( !inst[ cache ] && space.to ) {
     262
     263                                                        // if the value was null, we don't need to copy it
     264                                                        // if the key was alpha, we don't need to copy it either
     265                                                        if ( key === "alpha" || red[ key ] == null ) {
     266                                                                return;
     267                                                        }
     268                                                        inst[ cache ] = space.to( inst._rgba );
     269                                                }
     270
     271                                                // this is the only case where we allow nulls for ALL properties.
     272                                                // call clamp with alwaysAllowEmpty
     273                                                inst[ cache ][ prop.idx ] = clamp( red[ key ], prop, true );
     274                                        });
     275
     276                                        // everything defined but alpha?
     277                                        if ( inst[ cache ] && jQuery.inArray( null, inst[ cache ].slice( 0, 3 ) ) < 0 ) {
     278                                                // use the default of 1
     279                                                inst[ cache ][ 3 ] = 1;
     280                                                if ( space.from ) {
     281                                                        inst._rgba = space.from( inst[ cache ] );
     282                                                }
     283                                        }
     284                                });
     285                        }
     286                        return this;
     287                }
     288        },
     289        is: function( compare ) {
     290                var is = color( compare ),
     291                        same = true,
     292                        inst = this;
     293
     294                each( spaces, function( _, space ) {
     295                        var localCache,
     296                                isCache = is[ space.cache ];
     297                        if (isCache) {
     298                                localCache = inst[ space.cache ] || space.to && space.to( inst._rgba ) || [];
     299                                each( space.props, function( _, prop ) {
     300                                        if ( isCache[ prop.idx ] != null ) {
     301                                                same = ( isCache[ prop.idx ] === localCache[ prop.idx ] );
     302                                                return same;
     303                                        }
     304                                });
     305                        }
     306                        return same;
     307                });
     308                return same;
     309        },
     310        _space: function() {
     311                var used = [],
     312                        inst = this;
     313                each( spaces, function( spaceName, space ) {
     314                        if ( inst[ space.cache ] ) {
     315                                used.push( spaceName );
     316                        }
     317                });
     318                return used.pop();
     319        },
     320        transition: function( other, distance ) {
     321                var end = color( other ),
     322                        spaceName = end._space(),
     323                        space = spaces[ spaceName ],
     324                        startColor = this.alpha() === 0 ? color( "transparent" ) : this,
     325                        start = startColor[ space.cache ] || space.to( startColor._rgba ),
     326                        result = start.slice();
     327
     328                end = end[ space.cache ];
     329                each( space.props, function( key, prop ) {
     330                        var index = prop.idx,
     331                                startValue = start[ index ],
     332                                endValue = end[ index ],
     333                                type = propTypes[ prop.type ] || {};
     334
     335                        // if null, don't override start value
     336                        if ( endValue === null ) {
     337                                return;
     338                        }
     339                        // if null - use end
     340                        if ( startValue === null ) {
     341                                result[ index ] = endValue;
     342                        } else {
     343                                if ( type.mod ) {
     344                                        if ( endValue - startValue > type.mod / 2 ) {
     345                                                startValue += type.mod;
     346                                        } else if ( startValue - endValue > type.mod / 2 ) {
     347                                                startValue -= type.mod;
     348                                        }
     349                                }
     350                                result[ index ] = clamp( ( endValue - startValue ) * distance + startValue, prop );
     351                        }
     352                });
     353                return this[ spaceName ]( result );
     354        },
     355        blend: function( opaque ) {
     356                // if we are already opaque - return ourself
     357                if ( this._rgba[ 3 ] === 1 ) {
     358                        return this;
     359                }
     360
     361                var rgb = this._rgba.slice(),
     362                        a = rgb.pop(),
     363                        blend = color( opaque )._rgba;
     364
     365                return color( jQuery.map( rgb, function( v, i ) {
     366                        return ( 1 - a ) * blend[ i ] + a * v;
     367                }));
     368        },
     369        toRgbaString: function() {
     370                var prefix = "rgba(",
     371                        rgba = jQuery.map( this._rgba, function( v, i ) {
     372                                return v == null ? ( i > 2 ? 1 : 0 ) : v;
     373                        });
     374
     375                if ( rgba[ 3 ] === 1 ) {
     376                        rgba.pop();
     377                        prefix = "rgb(";
     378                }
     379
     380                return prefix + rgba.join() + ")";
     381        },
     382        toHslaString: function() {
     383                var prefix = "hsla(",
     384                        hsla = jQuery.map( this.hsla(), function( v, i ) {
     385                                if ( v == null ) {
     386                                        v = i > 2 ? 1 : 0;
     387                                }
     388
     389                                // catch 1 and 2
     390                                if ( i && i < 3 ) {
     391                                        v = Math.round( v * 100 ) + "%";
     392                                }
     393                                return v;
     394                        });
     395
     396                if ( hsla[ 3 ] === 1 ) {
     397                        hsla.pop();
     398                        prefix = "hsl(";
     399                }
     400                return prefix + hsla.join() + ")";
     401        },
     402        toHexString: function( includeAlpha ) {
     403                var rgba = this._rgba.slice(),
     404                        alpha = rgba.pop();
     405
     406                if ( includeAlpha ) {
     407                        rgba.push( ~~( alpha * 255 ) );
     408                }
     409
     410                return "#" + jQuery.map( rgba, function( v, i ) {
     411
     412                        // default to 0 when nulls exist
     413                        v = ( v || 0 ).toString( 16 );
     414                        return v.length === 1 ? "0" + v : v;
     415                }).join("");
     416        },
     417        toString: function() {
     418                return this._rgba[ 3 ] === 0 ? "transparent" : this.toRgbaString();
     419        }
     420});
     421color.fn.parse.prototype = color.fn;
     422
     423// hsla conversions adapted from:
     424// https://code.google.com/p/maashaack/source/browse/packages/graphics/trunk/src/graphics/colors/HUE2RGB.as?r=5021
     425
     426function hue2rgb( p, q, h ) {
     427        h = ( h + 1 ) % 1;
     428        if ( h * 6 < 1 ) {
     429                return p + (q - p) * h * 6;
     430        }
     431        if ( h * 2 < 1) {
     432                return q;
     433        }
     434        if ( h * 3 < 2 ) {
     435                return p + (q - p) * ((2/3) - h) * 6;
     436        }
     437        return p;
     438}
     439
     440spaces.hsla.to = function ( rgba ) {
     441        if ( rgba[ 0 ] == null || rgba[ 1 ] == null || rgba[ 2 ] == null ) {
     442                return [ null, null, null, rgba[ 3 ] ];
     443        }
     444        var r = rgba[ 0 ] / 255,
     445                g = rgba[ 1 ] / 255,
     446                b = rgba[ 2 ] / 255,
     447                a = rgba[ 3 ],
     448                max = Math.max( r, g, b ),
     449                min = Math.min( r, g, b ),
     450                diff = max - min,
     451                add = max + min,
     452                l = add * 0.5,
     453                h, s;
     454
     455        if ( min === max ) {
     456                h = 0;
     457        } else if ( r === max ) {
     458                h = ( 60 * ( g - b ) / diff ) + 360;
     459        } else if ( g === max ) {
     460                h = ( 60 * ( b - r ) / diff ) + 120;
     461        } else {
     462                h = ( 60 * ( r - g ) / diff ) + 240;
     463        }
     464
     465        if ( l === 0 || l === 1 ) {
     466                s = l;
     467        } else if ( l <= 0.5 ) {
     468                s = diff / add;
     469        } else {
     470                s = diff / ( 2 - add );
     471        }
     472        return [ Math.round(h) % 360, s, l, a == null ? 1 : a ];
     473};
     474
     475spaces.hsla.from = function ( hsla ) {
     476        if ( hsla[ 0 ] == null || hsla[ 1 ] == null || hsla[ 2 ] == null ) {
     477                return [ null, null, null, hsla[ 3 ] ];
     478        }
     479        var h = hsla[ 0 ] / 360,
     480                s = hsla[ 1 ],
     481                l = hsla[ 2 ],
     482                a = hsla[ 3 ],
     483                q = l <= 0.5 ? l * ( 1 + s ) : l + s - l * s,
     484                p = 2 * l - q,
     485                r, g, b;
     486
     487        return [
     488                Math.round( hue2rgb( p, q, h + ( 1 / 3 ) ) * 255 ),
     489                Math.round( hue2rgb( p, q, h ) * 255 ),
     490                Math.round( hue2rgb( p, q, h - ( 1 / 3 ) ) * 255 ),
     491                a
     492        ];
     493};
     494
     495
     496each( spaces, function( spaceName, space ) {
     497        var props = space.props,
     498                cache = space.cache,
     499                to = space.to,
     500                from = space.from;
     501
     502        // makes rgba() and hsla()
     503        color.fn[ spaceName ] = function( value ) {
     504
     505                // generate a cache for this space if it doesn't exist
     506                if ( to && !this[ cache ] ) {
     507                        this[ cache ] = to( this._rgba );
     508                }
     509                if ( value === undefined ) {
     510                        return this[ cache ].slice();
     511                }
     512
     513                var ret,
     514                        type = jQuery.type( value ),
     515                        arr = ( type === "array" || type === "object" ) ? value : arguments,
     516                        local = this[ cache ].slice();
     517
     518                each( props, function( key, prop ) {
     519                        var val = arr[ type === "object" ? key : prop.idx ];
     520                        if ( val == null ) {
     521                                val = local[ prop.idx ];
     522                        }
     523                        local[ prop.idx ] = clamp( val, prop );
     524                });
     525
     526                if ( from ) {
     527                        ret = color( from( local ) );
     528                        ret[ cache ] = local;
     529                        return ret;
     530                } else {
     531                        return color( local );
     532                }
     533        };
     534
     535        // makes red() green() blue() alpha() hue() saturation() lightness()
     536        each( props, function( key, prop ) {
     537                // alpha is included in more than one space
     538                if ( color.fn[ key ] ) {
     539                        return;
     540                }
     541                color.fn[ key ] = function( value ) {
     542                        var vtype = jQuery.type( value ),
     543                                fn = ( key === "alpha" ? ( this._hsla ? "hsla" : "rgba" ) : spaceName ),
     544                                local = this[ fn ](),
     545                                cur = local[ prop.idx ],
     546                                match;
     547
     548                        if ( vtype === "undefined" ) {
     549                                return cur;
     550                        }
     551
     552                        if ( vtype === "function" ) {
     553                                value = value.call( this, cur );
     554                                vtype = jQuery.type( value );
     555                        }
     556                        if ( value == null && prop.empty ) {
     557                                return this;
     558                        }
     559                        if ( vtype === "string" ) {
     560                                match = rplusequals.exec( value );
     561                                if ( match ) {
     562                                        value = cur + parseFloat( match[ 2 ] ) * ( match[ 1 ] === "+" ? 1 : -1 );
     563                                }
     564                        }
     565                        local[ prop.idx ] = value;
     566                        return this[ fn ]( local );
     567                };
     568        });
     569});
     570
     571// add cssHook and .fx.step function for each named hook.
     572// accept a space separated string of properties
     573color.hook = function( hook ) {
     574        var hooks = hook.split( " " );
     575        each( hooks, function( i, hook ) {
     576                jQuery.cssHooks[ hook ] = {
     577                        set: function( elem, value ) {
     578                                var parsed, curElem,
     579                                        backgroundColor = "";
     580
     581                                if ( jQuery.type( value ) !== "string" || ( parsed = stringParse( value ) ) ) {
     582                                        value = color( parsed || value );
     583                                        if ( !support.rgba && value._rgba[ 3 ] !== 1 ) {
     584                                                curElem = hook === "backgroundColor" ? elem.parentNode : elem;
     585                                                while (
     586                                                        (backgroundColor === "" || backgroundColor === "transparent") &&
     587                                                        curElem && curElem.style
     588                                                ) {
     589                                                        try {
     590                                                                backgroundColor = jQuery.css( curElem, "backgroundColor" );
     591                                                                curElem = curElem.parentNode;
     592                                                        } catch ( e ) {
     593                                                        }
     594                                                }
     595
     596                                                value = value.blend( backgroundColor && backgroundColor !== "transparent" ?
     597                                                        backgroundColor :
     598                                                        "_default" );
     599                                        }
     600
     601                                        value = value.toRgbaString();
     602                                }
     603                                try {
     604                                        elem.style[ hook ] = value;
     605                                } catch( value ) {
     606                                        // wrapped to prevent IE from throwing errors on "invalid" values like 'auto' or 'inherit'
     607                                }
     608                        }
     609                };
     610                jQuery.fx.step[ hook ] = function( fx ) {
     611                        if ( !fx.colorInit ) {
     612                                fx.start = color( fx.elem, hook );
     613                                fx.end = color( fx.end );
     614                                fx.colorInit = true;
     615                        }
     616                        jQuery.cssHooks[ hook ].set( fx.elem, fx.start.transition( fx.end, fx.pos ) );
     617                };
     618        });
     619
     620};
     621
     622color.hook( stepHooks );
     623
     624jQuery.cssHooks.borderColor = {
     625        expand: function( value ) {
     626                var expanded = {};
     627
     628                each( [ "Top", "Right", "Bottom", "Left" ], function( i, part ) {
     629                        expanded[ "border" + part + "Color" ] = value;
     630                });
     631                return expanded;
     632        }
     633};
     634
     635// Basic color names only.
     636// Usage of any of the other color names requires adding yourself or including
     637// jquery.color.svg-names.js.
     638colors = jQuery.Color.names = {
     639        // 4.1. Basic color keywords
     640        aqua: "#00ffff",
     641        black: "#000000",
     642        blue: "#0000ff",
     643        fuchsia: "#ff00ff",
     644        gray: "#808080",
     645        green: "#008000",
     646        lime: "#00ff00",
     647        maroon: "#800000",
     648        navy: "#000080",
     649        olive: "#808000",
     650        purple: "#800080",
     651        red: "#ff0000",
     652        silver: "#c0c0c0",
     653        teal: "#008080",
     654        white: "#ffffff",
     655        yellow: "#ffff00",
     656
     657        // 4.2.3. ‘transparent’ color keyword
     658        transparent: [ null, null, null, 0 ],
     659
     660        _default: "#ffffff"
     661};
     662
     663})( jQuery );
     664
     665/*!
     666 * jQuery Color Animations v2.1.0 - SVG Color Names
     667 * http://jquery.org/
     668 *
     669 * Remaining HTML/CSS color names per W3C's CSS Color Module Level 3.
     670 * http://www.w3.org/TR/css3-color/#svg-color
     671 *
     672 * Copyright 2012 jQuery Foundation and other contributors
     673 * Released under the MIT license.
     674 * http://jquery.org/license
     675 *
     676 * Date: Fri Aug 24 12:02:24 2012 -0500
     677 */
     678jQuery.extend( jQuery.Color.names, {
     679        // 4.3. Extended color keywords (minus the basic ones in core color plugin)
     680        aliceblue: "#f0f8ff",
     681        antiquewhite: "#faebd7",
     682        aquamarine: "#7fffd4",
     683        azure: "#f0ffff",
     684        beige: "#f5f5dc",
     685        bisque: "#ffe4c4",
     686        blanchedalmond: "#ffebcd",
     687        blueviolet: "#8a2be2",
     688        brown: "#a52a2a",
     689        burlywood: "#deb887",
     690        cadetblue: "#5f9ea0",
     691        chartreuse: "#7fff00",
     692        chocolate: "#d2691e",
     693        coral: "#ff7f50",
     694        cornflowerblue: "#6495ed",
     695        cornsilk: "#fff8dc",
     696        crimson: "#dc143c",
     697        cyan: "#00ffff",
     698        darkblue: "#00008b",
     699        darkcyan: "#008b8b",
     700        darkgoldenrod: "#b8860b",
     701        darkgray: "#a9a9a9",
     702        darkgreen: "#006400",
     703        darkgrey: "#a9a9a9",
     704        darkkhaki: "#bdb76b",
     705        darkmagenta: "#8b008b",
     706        darkolivegreen: "#556b2f",
     707        darkorange: "#ff8c00",
     708        darkorchid: "#9932cc",
     709        darkred: "#8b0000",
     710        darksalmon: "#e9967a",
     711        darkseagreen: "#8fbc8f",
     712        darkslateblue: "#483d8b",
     713        darkslategray: "#2f4f4f",
     714        darkslategrey: "#2f4f4f",
     715        darkturquoise: "#00ced1",
     716        darkviolet: "#9400d3",
     717        deeppink: "#ff1493",
     718        deepskyblue: "#00bfff",
     719        dimgray: "#696969",
     720        dimgrey: "#696969",
     721        dodgerblue: "#1e90ff",
     722        firebrick: "#b22222",
     723        floralwhite: "#fffaf0",
     724        forestgreen: "#228b22",
     725        gainsboro: "#dcdcdc",
     726        ghostwhite: "#f8f8ff",
     727        gold: "#ffd700",
     728        goldenrod: "#daa520",
     729        greenyellow: "#adff2f",
     730        grey: "#808080",
     731        honeydew: "#f0fff0",
     732        hotpink: "#ff69b4",
     733        indianred: "#cd5c5c",
     734        indigo: "#4b0082",
     735        ivory: "#fffff0",
     736        khaki: "#f0e68c",
     737        lavender: "#e6e6fa",
     738        lavenderblush: "#fff0f5",
     739        lawngreen: "#7cfc00",
     740        lemonchiffon: "#fffacd",
     741        lightblue: "#add8e6",
     742        lightcoral: "#f08080",
     743        lightcyan: "#e0ffff",
     744        lightgoldenrodyellow: "#fafad2",
     745        lightgray: "#d3d3d3",
     746        lightgreen: "#90ee90",
     747        lightgrey: "#d3d3d3",
     748        lightpink: "#ffb6c1",
     749        lightsalmon: "#ffa07a",
     750        lightseagreen: "#20b2aa",
     751        lightskyblue: "#87cefa",
     752        lightslategray: "#778899",
     753        lightslategrey: "#778899",
     754        lightsteelblue: "#b0c4de",
     755        lightyellow: "#ffffe0",
     756        limegreen: "#32cd32",
     757        linen: "#faf0e6",
     758        mediumaquamarine: "#66cdaa",
     759        mediumblue: "#0000cd",
     760        mediumorchid: "#ba55d3",
     761        mediumpurple: "#9370db",
     762        mediumseagreen: "#3cb371",
     763        mediumslateblue: "#7b68ee",
     764        mediumspringgreen: "#00fa9a",
     765        mediumturquoise: "#48d1cc",
     766        mediumvioletred: "#c71585",
     767        midnightblue: "#191970",
     768        mintcream: "#f5fffa",
     769        mistyrose: "#ffe4e1",
     770        moccasin: "#ffe4b5",
     771        navajowhite: "#ffdead",
     772        oldlace: "#fdf5e6",
     773        olivedrab: "#6b8e23",
     774        orange: "#ffa500",
     775        orangered: "#ff4500",
     776        orchid: "#da70d6",
     777        palegoldenrod: "#eee8aa",
     778        palegreen: "#98fb98",
     779        paleturquoise: "#afeeee",
     780        palevioletred: "#db7093",
     781        papayawhip: "#ffefd5",
     782        peachpuff: "#ffdab9",
     783        peru: "#cd853f",
     784        pink: "#ffc0cb",
     785        plum: "#dda0dd",
     786        powderblue: "#b0e0e6",
     787        rosybrown: "#bc8f8f",
     788        royalblue: "#4169e1",
     789        saddlebrown: "#8b4513",
     790        salmon: "#fa8072",
     791        sandybrown: "#f4a460",
     792        seagreen: "#2e8b57",
     793        seashell: "#fff5ee",
     794        sienna: "#a0522d",
     795        skyblue: "#87ceeb",
     796        slateblue: "#6a5acd",
     797        slategray: "#708090",
     798        slategrey: "#708090",
     799        snow: "#fffafa",
     800        springgreen: "#00ff7f",
     801        steelblue: "#4682b4",
     802        tan: "#d2b48c",
     803        thistle: "#d8bfd8",
     804        tomato: "#ff6347",
     805        turquoise: "#40e0d0",
     806        violet: "#ee82ee",
     807        wheat: "#f5deb3",
     808        whitesmoke: "#f5f5f5",
     809        yellowgreen: "#9acd32",
     810});
  • trunk/wp-includes/js/jquery/jquery.color.min.js

    r21592 r21632  
    1 (function(d){d.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(f,e){d.fx.step[e]=function(g){if(g.state==0){g.start=c(g.elem,e);g.end=b(g.end)}g.elem.style[e]="rgb("+[Math.max(Math.min(parseInt((g.pos*(g.end[0]-g.start[0]))+g.start[0]),255),0),Math.max(Math.min(parseInt((g.pos*(g.end[1]-g.start[1]))+g.start[1]),255),0),Math.max(Math.min(parseInt((g.pos*(g.end[2]-g.start[2]))+g.start[2]),255),0)].join(",")+")"}});function b(f){var e;if(f&&f.constructor==Array&&f.length==3){return f}if(e=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(f)){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}if(e=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(f)){return[parseFloat(e[1])*2.55,parseFloat(e[2])*2.55,parseFloat(e[3])*2.55]}if(e=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(f)){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}if(e=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(f)){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}if(e=/rgba\(0, 0, 0, 0\)/.exec(f)){return a.transparent}return a[d.trim(f).toLowerCase()]}function c(g,e){var f;do{f=d.curCSS(g,e);if(f!=""&&f!="transparent"||d.nodeName(g,"body")){break}e="backgroundColor"}while(g=g.parentNode);return b(f)}var a={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]}})(jQuery);
     1/*! jQuery Color v@2.1.0 with SVG Color Names http://github.com/jquery/jquery-color | jquery.org/license */
     2(function(a,b){function m(a,b,c){var d=h[b.type]||{};return a==null?c||!b.def?null:b.def:(a=d.floor?~~a:parseFloat(a),isNaN(a)?b.def:d.mod?(a+d.mod)%d.mod:0>a?0:d.max<a?d.max:a)}function n(b){var c=f(),d=c._rgba=[];return b=b.toLowerCase(),l(e,function(a,e){var f,h=e.re.exec(b),i=h&&e.parse(h),j=e.space||"rgba";if(i)return f=c[j](i),c[g[j].cache]=f[g[j].cache],d=c._rgba=f._rgba,!1}),d.length?(d.join()==="0,0,0,0"&&a.extend(d,k.transparent),c):k[b]}function o(a,b,c){return c=(c+1)%1,c*6<1?a+(b-a)*c*6:c*2<1?b:c*3<2?a+(b-a)*(2/3-c)*6:a}var c="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",d=/^([\-+])=\s*(\d+\.?\d*)/,e=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(a){return[a[1],a[2],a[3],a[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(a){return[a[1]*2.55,a[2]*2.55,a[3]*2.55,a[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(a){return[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(a){return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(a){return[a[1],a[2]/100,a[3]/100,a[4]]}}],f=a.Color=function(b,c,d,e){return new a.Color.fn.parse(b,c,d,e)},g={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},h={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},i=f.support={},j=a("<p>")[0],k,l=a.each;j.style.cssText="background-color:rgba(1,1,1,.5)",i.rgba=j.style.backgroundColor.indexOf("rgba")>-1,l(g,function(a,b){b.cache="_"+a,b.props.alpha={idx:3,type:"percent",def:1}}),f.fn=a.extend(f.prototype,{parse:function(c,d,e,h){if(c===b)return this._rgba=[null,null,null,null],this;if(c.jquery||c.nodeType)c=a(c).css(d),d=b;var i=this,j=a.type(c),o=this._rgba=[],p;d!==b&&(c=[c,d,e,h],j="array");if(j==="string")return this.parse(n(c)||k._default);if(j==="array")return l(g.rgba.props,function(a,b){o[b.idx]=m(c[b.idx],b)}),this;if(j==="object")return c instanceof f?l(g,function(a,b){c[b.cache]&&(i[b.cache]=c[b.cache].slice())}):l(g,function(b,d){var e=d.cache;l(d.props,function(a,b){if(!i[e]&&d.to){if(a==="alpha"||c[a]==null)return;i[e]=d.to(i._rgba)}i[e][b.idx]=m(c[a],b,!0)}),i[e]&&a.inArray(null,i[e].slice(0,3))<0&&(i[e][3]=1,d.from&&(i._rgba=d.from(i[e])))}),this},is:function(a){var b=f(a),c=!0,d=this;return l(g,function(a,e){var f,g=b[e.cache];return g&&(f=d[e.cache]||e.to&&e.to(d._rgba)||[],l(e.props,function(a,b){if(g[b.idx]!=null)return c=g[b.idx]===f[b.idx],c})),c}),c},_space:function(){var a=[],b=this;return l(g,function(c,d){b[d.cache]&&a.push(c)}),a.pop()},transition:function(a,b){var c=f(a),d=c._space(),e=g[d],i=this.alpha()===0?f("transparent"):this,j=i[e.cache]||e.to(i._rgba),k=j.slice();return c=c[e.cache],l(e.props,function(a,d){var e=d.idx,f=j[e],g=c[e],i=h[d.type]||{};if(g===null)return;f===null?k[e]=g:(i.mod&&(g-f>i.mod/2?f+=i.mod:f-g>i.mod/2&&(f-=i.mod)),k[e]=m((g-f)*b+f,d))}),this[d](k)},blend:function(b){if(this._rgba[3]===1)return this;var c=this._rgba.slice(),d=c.pop(),e=f(b)._rgba;return f(a.map(c,function(a,b){return(1-d)*e[b]+d*a}))},toRgbaString:function(){var b="rgba(",c=a.map(this._rgba,function(a,b){return a==null?b>2?1:0:a});return c[3]===1&&(c.pop(),b="rgb("),b+c.join()+")"},toHslaString:function(){var b="hsla(",c=a.map(this.hsla(),function(a,b){return a==null&&(a=b>2?1:0),b&&b<3&&(a=Math.round(a*100)+"%"),a});return c[3]===1&&(c.pop(),b="hsl("),b+c.join()+")"},toHexString:function(b){var c=this._rgba.slice(),d=c.pop();return b&&c.push(~~(d*255)),"#"+a.map(c,function(a,b){return a=(a||0).toString(16),a.length===1?"0"+a:a}).join("")},toString:function(){return this._rgba[3]===0?"transparent":this.toRgbaString()}}),f.fn.parse.prototype=f.fn,g.hsla.to=function(a){if(a[0]==null||a[1]==null||a[2]==null)return[null,null,null,a[3]];var b=a[0]/255,c=a[1]/255,d=a[2]/255,e=a[3],f=Math.max(b,c,d),g=Math.min(b,c,d),h=f-g,i=f+g,j=i*.5,k,l;return g===f?k=0:b===f?k=60*(c-d)/h+360:c===f?k=60*(d-b)/h+120:k=60*(b-c)/h+240,j===0||j===1?l=j:j<=.5?l=h/i:l=h/(2-i),[Math.round(k)%360,l,j,e==null?1:e]},g.hsla.from=function(a){if(a[0]==null||a[1]==null||a[2]==null)return[null,null,null,a[3]];var b=a[0]/360,c=a[1],d=a[2],e=a[3],f=d<=.5?d*(1+c):d+c-d*c,g=2*d-f,h,i,j;return[Math.round(o(g,f,b+1/3)*255),Math.round(o(g,f,b)*255),Math.round(o(g,f,b-1/3)*255),e]},l(g,function(c,e){var g=e.props,h=e.cache,i=e.to,j=e.from;f.fn[c]=function(c){i&&!this[h]&&(this[h]=i(this._rgba));if(c===b)return this[h].slice();var d,e=a.type(c),k=e==="array"||e==="object"?c:arguments,n=this[h].slice();return l(g,function(a,b){var c=k[e==="object"?a:b.idx];c==null&&(c=n[b.idx]),n[b.idx]=m(c,b)}),j?(d=f(j(n)),d[h]=n,d):f(n)},l(g,function(b,e){if(f.fn[b])return;f.fn[b]=function(f){var g=a.type(f),h=b==="alpha"?this._hsla?"hsla":"rgba":c,i=this[h](),j=i[e.idx],k;return g==="undefined"?j:(g==="function"&&(f=f.call(this,j),g=a.type(f)),f==null&&e.empty?this:(g==="string"&&(k=d.exec(f),k&&(f=j+parseFloat(k[2])*(k[1]==="+"?1:-1))),i[e.idx]=f,this[h](i)))}})}),f.hook=function(b){var c=b.split(" ");l(c,function(b,c){a.cssHooks[c]={set:function(b,d){var e,g,h="";if(a.type(d)!=="string"||(e=n(d))){d=f(e||d);if(!i.rgba&&d._rgba[3]!==1){g=c==="backgroundColor"?b.parentNode:b;while((h===""||h==="transparent")&&g&&g.style)try{h=a.css(g,"backgroundColor"),g=g.parentNode}catch(j){}d=d.blend(h&&h!=="transparent"?h:"_default")}d=d.toRgbaString()}try{b.style[c]=d}catch(d){}}},a.fx.step[c]=function(b){b.colorInit||(b.start=f(b.elem,c),b.end=f(b.end),b.colorInit=!0),a.cssHooks[c].set(b.elem,b.start.transition(b.end,b.pos))}})},f.hook(c),a.cssHooks.borderColor={expand:function(a){var b={};return l(["Top","Right","Bottom","Left"],function(c,d){b["border"+d+"Color"]=a}),b}},k=a.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}})(jQuery),jQuery.extend(jQuery.Color.names,{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",blanchedalmond:"#ffebcd",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",limegreen:"#32cd32",linen:"#faf0e6",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",oldlace:"#fdf5e6",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",whitesmoke:"#f5f5f5",yellowgreen:"#9acd32"});
  • trunk/wp-includes/script-loader.php

    r21593 r21632  
    161161
    162162        // jQuery plugins
    163         $scripts->add( 'jquery-color', "/wp-includes/js/jquery/jquery.color$suffix.js", array('jquery'), '2.0-4561m', 1 );
     163        $scripts->add( 'jquery-color', "/wp-includes/js/jquery/jquery.color$suffix.js", array('jquery'), '2.1.0', 1 );
    164164        $scripts->add( 'suggest', "/wp-includes/js/jquery/suggest$suffix.js", array('jquery'), '1.1-20110113', 1 );
    165165        $scripts->add( 'schedule', '/wp-includes/js/jquery/jquery.schedule.js', array('jquery'), '20m', 1 );
Note: See TracChangeset for help on using the changeset viewer.