|
|
@ -112,15 +112,17 @@
|
|
|
|
$(_html).css({'margin': _options.margin}).
|
|
|
|
$(_html).css({'margin': _options.margin}).
|
|
|
|
appendTo('body').
|
|
|
|
appendTo('body').
|
|
|
|
show(0, function() {
|
|
|
|
show(0, function() {
|
|
|
|
_GPU = _options.GPU && $(this).css('perspective') !== undefined;
|
|
|
|
var $this = $(this);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_GPU = _options.GPU && $this.css('perspective') !== undefined;
|
|
|
|
_$xy_slider = $('.cp-xy-slider', this);
|
|
|
|
_$xy_slider = $('.cp-xy-slider', this);
|
|
|
|
_$xy_cursor = $('.cp-xy-cursor', this);
|
|
|
|
_$xy_cursor = $('.cp-xy-cursor', this);
|
|
|
|
_$z_cursor = $('.cp-z-cursor', this);
|
|
|
|
_$z_cursor = $('.cp-z-cursor', this);
|
|
|
|
_$alpha = $('.cp-alpha', this).toggle(!!_options.opacity);
|
|
|
|
_$alpha = $('.cp-alpha', this).toggle(!!_options.opacity);
|
|
|
|
_$alpha_cursor = $('.cp-alpha-cursor', this);
|
|
|
|
_$alpha_cursor = $('.cp-alpha-cursor', this);
|
|
|
|
_options.buildCallback.call(_colorPicker, $(this));
|
|
|
|
_options.buildCallback.call(_colorPicker, $this);
|
|
|
|
$(this).prepend('<div>').children().eq(0).css('width',
|
|
|
|
$this.prepend('<div>').children().eq(0).css('width',
|
|
|
|
$(this).children().eq(0).width() // stabilizer
|
|
|
|
$this.children().eq(0).width() // stabilizer
|
|
|
|
);
|
|
|
|
);
|
|
|
|
this._width = this.offsetWidth;
|
|
|
|
this._width = this.offsetWidth;
|
|
|
|
this._height = this.offsetHeight;
|
|
|
|
this._height = this.offsetHeight;
|
|
|
|