diff --git a/color.html b/color.html
deleted file mode 100644
index b81e57f..0000000
--- a/color.html
+++ /dev/null
@@ -1,64 +0,0 @@
-
-
-
-
-
- color_new
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/colorPicker.js b/colorPicker.js
index c50d536..693c29d 100644
--- a/colorPicker.js
+++ b/colorPicker.js
@@ -68,11 +68,13 @@
CSSPrefix: 'cp-',
scale: 1,
allMixDetails: true,
- alphaBG: 'w'
+ alphaBG: 'w',
+ imagePath: '',
// noAlpha: true,
// customBG: '#808080'
// size: 0,
// cmyOnly: false,
+ // initStyle: 'display: none',
// memoryColors: [{r: 100, g: 200, b: 10}]// , a: 0.5
@@ -88,7 +90,7 @@
// noRGBg: false,
// noRGBb: false,
- // CSSStrength: 'div.',
+ // ------ CSSStrength: 'div.',
// XYZMatrix: XYZMatrix,
// XYZReference: {},
// grey: grey,
@@ -305,9 +307,10 @@
_data._cssFunc = _data._cssFunc.
replace(/§/g, prefix).
- replace('_patches.png', !_isIE ? urlData + _data._patchesPng : '_patches.png').
- replace('_vertical.png', !_isIE ? urlData + _data._verticalPng : '_vertical.png').
- replace('_horizontal.png', !_isIE ? urlData + _data._horizontalPng : '_horizontal.png');
+ replace('_patches.png', !_isIE ? urlData + _data._patchesPng : _options.imagePath + '_patches.png').
+ replace('_vertical.png', !_isIE ? urlData + _data._verticalPng : _options.imagePath + '_vertical.png').
+ replace('_horizontal.png', !_isIE ? urlData + _data._horizontalPng :
+ _options.imagePath + '_horizontal.png');
if (!style.styleSheet) {
style.appendChild(document.createTextNode(_data._cssFunc));
}
@@ -322,9 +325,9 @@
style.setAttribute('type', 'text/css');
_data._cssMain = _data._cssMain.
replace(/§/g, prefix).
- replace('_bgs.png', !_isIE ? urlData + _data._bgsPng : '_bgs.png').
- replace('_icons.png', !_isIE ? urlData + _data._iconsPng : '_icons.png').
- replace('_blank.png', !_isIE ? urlData + _data._blankPng : '_blank.cur').
+ replace('_bgs.png', !_isIE ? urlData + _data._bgsPng : _options.imagePath + '_bgs.png').
+ replace('_icons.png', !_isIE ? urlData + _data._iconsPng : _options.imagePath + '_icons.png').
+ replace('_blank.png', !_isIE ? urlData + _data._blankPng : _options.imagePath + '_blank.cur').
replace('"Courier New",', !_isIE ? '' : '"Courier New",');
// style.appendChild(document.createTextNode(_data._cssFunc));
if (!style.styleSheet) {
@@ -340,6 +343,8 @@
}
}
+ app.children[0].style.cssText = _options.initStyle || '';
+
return (_options.appenTo || document.body).appendChild(app.children[0]);
}
diff --git a/color.js b/colors.js
similarity index 100%
rename from color.js
rename to colors.js
diff --git a/colorPicker.css b/developer/colorPicker.css
similarity index 100%
rename from colorPicker.css
rename to developer/colorPicker.css
diff --git a/colorPicker.dev.js b/developer/colorPicker.dev.js
similarity index 100%
rename from colorPicker.dev.js
rename to developer/colorPicker.dev.js
diff --git a/colorPicker.html b/developer/colorPicker.html
similarity index 97%
rename from colorPicker.html
rename to developer/colorPicker.html
index be6d5d2..f613ad4 100644
--- a/colorPicker.html
+++ b/developer/colorPicker.html
@@ -181,8 +181,8 @@
-
-
+
+
+