1 (function ( $, undefined ) {
3 $.widget( "tizen.huegradient", $.tizen.widgetex, {
5 this.element.addClass( "tizen-huegradient" );
8 // Crutches for IE: it is incapable of multi-stop gradients, so add multiple divs inside the given div, each with a
10 _IEGradient: function ( div, disabled ) {
11 var rainbow = disabled
12 ? ["#363636", "#ededed", "#b6b6b6", "#c9c9c9", "#121212", "#494949", "#363636"]
13 : ["#ff0000", "#ffff00", "#00ff00", "#00ffff", "#0000ff", "#ff00ff", "#ff0000"],
16 for (Nix = 0 ; Nix < 6 ; Nix++ ) {
20 width: ( 100 / 6 ) + "%",
22 left: ( Nix * 100 / 6 ) + "%",
24 filter: "progid:DXImageTransform.Microsoft.gradient (startColorstr='" + rainbow[Nix] + "', endColorstr='" + rainbow[Nix + 1] + "', GradientType = 1)"
30 _setDisabled: function ( value ) {
31 $.Widget.prototype._setOption.call( this, "disabled", value );
32 if ( $.mobile.browser.ie ) {
33 this._IEGradient( this.element.empty(), value );