|
|
@ -339,16 +339,22 @@ class ColorPicker { |
|
|
|
this.arrowDiv.className = 'vis-arrow'; |
|
|
|
|
|
|
|
this.opacityRange = document.createElement('input'); |
|
|
|
this.opacityRange.type = 'range'; |
|
|
|
this.opacityRange.min = '0'; |
|
|
|
this.opacityRange.max = '100'; |
|
|
|
try { |
|
|
|
this.opacityRange.type = 'range'; // Not supported on IE9
|
|
|
|
this.opacityRange.min = '0'; |
|
|
|
this.opacityRange.max = '100'; |
|
|
|
} |
|
|
|
catch (err) {} |
|
|
|
this.opacityRange.value = '100'; |
|
|
|
this.opacityRange.className = 'vis-range'; |
|
|
|
|
|
|
|
this.brightnessRange = document.createElement('input'); |
|
|
|
this.brightnessRange.type = 'range'; |
|
|
|
this.brightnessRange.min = '0'; |
|
|
|
this.brightnessRange.max = '100'; |
|
|
|
try { |
|
|
|
this.brightnessRange.type = 'range'; // Not supported on IE9
|
|
|
|
this.brightnessRange.min = '0'; |
|
|
|
this.brightnessRange.max = '100'; |
|
|
|
} |
|
|
|
catch (err) {} |
|
|
|
this.brightnessRange.value = '100'; |
|
|
|
this.brightnessRange.className = 'vis-range'; |
|
|
|
|
|
|
|