@richscripts2/richtexteditor 1.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/README.md +8 -0
  2. package/package.json +34 -0
  3. package/richtexteditor/lang/rte-lang-af.js +164 -0
  4. package/richtexteditor/lang/rte-lang-ar.js +164 -0
  5. package/richtexteditor/lang/rte-lang-bg.js +164 -0
  6. package/richtexteditor/lang/rte-lang-bn.js +164 -0
  7. package/richtexteditor/lang/rte-lang-bs.js +164 -0
  8. package/richtexteditor/lang/rte-lang-ca.js +164 -0
  9. package/richtexteditor/lang/rte-lang-cs.js +164 -0
  10. package/richtexteditor/lang/rte-lang-cy.js +164 -0
  11. package/richtexteditor/lang/rte-lang-da.js +164 -0
  12. package/richtexteditor/lang/rte-lang-de.js +164 -0
  13. package/richtexteditor/lang/rte-lang-el.js +164 -0
  14. package/richtexteditor/lang/rte-lang-en.js +3 -0
  15. package/richtexteditor/lang/rte-lang-es.js +164 -0
  16. package/richtexteditor/lang/rte-lang-et.js +164 -0
  17. package/richtexteditor/lang/rte-lang-fa.js +164 -0
  18. package/richtexteditor/lang/rte-lang-fi.js +164 -0
  19. package/richtexteditor/lang/rte-lang-fil.js +164 -0
  20. package/richtexteditor/lang/rte-lang-fj.js +164 -0
  21. package/richtexteditor/lang/rte-lang-fr.js +164 -0
  22. package/richtexteditor/lang/rte-lang-ga.js +164 -0
  23. package/richtexteditor/lang/rte-lang-gu.js +164 -0
  24. package/richtexteditor/lang/rte-lang-he.js +164 -0
  25. package/richtexteditor/lang/rte-lang-hi.js +164 -0
  26. package/richtexteditor/lang/rte-lang-hr.js +164 -0
  27. package/richtexteditor/lang/rte-lang-ht.js +164 -0
  28. package/richtexteditor/lang/rte-lang-hu.js +164 -0
  29. package/richtexteditor/lang/rte-lang-id.js +164 -0
  30. package/richtexteditor/lang/rte-lang-is.js +164 -0
  31. package/richtexteditor/lang/rte-lang-it.js +164 -0
  32. package/richtexteditor/lang/rte-lang-ja.js +164 -0
  33. package/richtexteditor/lang/rte-lang-kn.js +164 -0
  34. package/richtexteditor/lang/rte-lang-ko.js +164 -0
  35. package/richtexteditor/lang/rte-lang-lt.js +164 -0
  36. package/richtexteditor/lang/rte-lang-lv.js +164 -0
  37. package/richtexteditor/lang/rte-lang-mg.js +164 -0
  38. package/richtexteditor/lang/rte-lang-mi.js +164 -0
  39. package/richtexteditor/lang/rte-lang-ml.js +164 -0
  40. package/richtexteditor/lang/rte-lang-mr.js +164 -0
  41. package/richtexteditor/lang/rte-lang-ms.js +164 -0
  42. package/richtexteditor/lang/rte-lang-mt.js +164 -0
  43. package/richtexteditor/lang/rte-lang-mww.js +164 -0
  44. package/richtexteditor/lang/rte-lang-nb.js +164 -0
  45. package/richtexteditor/lang/rte-lang-nl.js +164 -0
  46. package/richtexteditor/lang/rte-lang-otq.js +164 -0
  47. package/richtexteditor/lang/rte-lang-pa.js +164 -0
  48. package/richtexteditor/lang/rte-lang-pl.js +164 -0
  49. package/richtexteditor/lang/rte-lang-pt-pt.js +164 -0
  50. package/richtexteditor/lang/rte-lang-pt.js +164 -0
  51. package/richtexteditor/lang/rte-lang-ro.js +164 -0
  52. package/richtexteditor/lang/rte-lang-ru.js +164 -0
  53. package/richtexteditor/lang/rte-lang-sk.js +164 -0
  54. package/richtexteditor/lang/rte-lang-sl.js +164 -0
  55. package/richtexteditor/lang/rte-lang-sm.js +164 -0
  56. package/richtexteditor/lang/rte-lang-sr-Cyrl.js +164 -0
  57. package/richtexteditor/lang/rte-lang-sr-Latn.js +164 -0
  58. package/richtexteditor/lang/rte-lang-sv.js +164 -0
  59. package/richtexteditor/lang/rte-lang-sw.js +164 -0
  60. package/richtexteditor/lang/rte-lang-ta.js +164 -0
  61. package/richtexteditor/lang/rte-lang-te.js +164 -0
  62. package/richtexteditor/lang/rte-lang-th.js +164 -0
  63. package/richtexteditor/lang/rte-lang-tlh-Latn.js +164 -0
  64. package/richtexteditor/lang/rte-lang-tlh-Piqd.js +164 -0
  65. package/richtexteditor/lang/rte-lang-to.js +164 -0
  66. package/richtexteditor/lang/rte-lang-tr.js +164 -0
  67. package/richtexteditor/lang/rte-lang-ty.js +164 -0
  68. package/richtexteditor/lang/rte-lang-uk.js +164 -0
  69. package/richtexteditor/lang/rte-lang-ur.js +164 -0
  70. package/richtexteditor/lang/rte-lang-vi.js +164 -0
  71. package/richtexteditor/lang/rte-lang-yua.js +164 -0
  72. package/richtexteditor/lang/rte-lang-zh-Hans.js +164 -0
  73. package/richtexteditor/lang/rte-lang-zh-Hant.js +164 -0
  74. package/richtexteditor/lang/rte-lang.js +1 -0
  75. package/richtexteditor/plugins/-combine-plugin.txt +2 -0
  76. package/richtexteditor/plugins/all_plugins.js +1063 -0
  77. package/richtexteditor/plugins/html2pdf.js +163 -0
  78. package/richtexteditor/plugins/imageeditor.js +160 -0
  79. package/richtexteditor/plugins/insertcode.js +316 -0
  80. package/richtexteditor/plugins/insertemoji.js +258 -0
  81. package/richtexteditor/plugins/insertgallery.js +82 -0
  82. package/richtexteditor/plugins/inserttemplate.js +82 -0
  83. package/richtexteditor/plugins/samples/insertcode_v1.js +76 -0
  84. package/richtexteditor/plugins/tui.image-editor/fabric.min.js +8 -0
  85. package/richtexteditor/plugins/tui.image-editor/note.txt +5 -0
  86. package/richtexteditor/plugins/tui.image-editor/svg/icon-a.svg +235 -0
  87. package/richtexteditor/plugins/tui.image-editor/svg/icon-b.svg +224 -0
  88. package/richtexteditor/plugins/tui.image-editor/svg/icon-c.svg +224 -0
  89. package/richtexteditor/plugins/tui.image-editor/svg/icon-d.svg +224 -0
  90. package/richtexteditor/plugins/tui.image-editor/tui-code-snippet.min.js +7 -0
  91. package/richtexteditor/plugins/tui.image-editor/tui-color-picker.min.css +6 -0
  92. package/richtexteditor/plugins/tui.image-editor/tui-color-picker.min.js +7 -0
  93. package/richtexteditor/plugins/tui.image-editor/tui-image-editor.min.css +7 -0
  94. package/richtexteditor/plugins/tui.image-editor/tui-image-editor.min.js +15 -0
  95. package/richtexteditor/rte.js +574 -0
  96. package/richtexteditor/rte_theme_default.css +1755 -0
  97. package/richtexteditor/runtime/colorpicker_more_ns.htm +2613 -0
  98. package/richtexteditor/runtime/help.htm +162 -0
  99. package/richtexteditor/runtime/images/1x1.gif +0 -0
  100. package/richtexteditor/runtime/images/cpie_Color.cur +0 -0
  101. package/richtexteditor/runtime/images/cpie_GradientPositionDark.gif +0 -0
  102. package/richtexteditor/runtime/images/cpie_GradientPositionLight.gif +0 -0
  103. package/richtexteditor/runtime/images/cpie_VerticalPosition.gif +0 -0
  104. package/richtexteditor/runtime/images/cpie_WebSafe.gif +0 -0
  105. package/richtexteditor/runtime/images/cpie_gradients.png +0 -0
  106. package/richtexteditor/runtime/images/cpns_Color.cur +0 -0
  107. package/richtexteditor/runtime/images/cpns_ColorSpace1.png +0 -0
  108. package/richtexteditor/runtime/images/cpns_ColorSpace2.png +0 -0
  109. package/richtexteditor/runtime/images/cpns_GradientPositionDark.gif +0 -0
  110. package/richtexteditor/runtime/images/cpns_GradientPositionLight.gif +0 -0
  111. package/richtexteditor/runtime/images/cpns_Vertical1.png +0 -0
  112. package/richtexteditor/runtime/images/cpns_Vertical2.png +0 -0
  113. package/richtexteditor/runtime/images/cpns_VerticalPosition.gif +0 -0
  114. package/richtexteditor/runtime/images/cpns_WebSafe.gif +0 -0
  115. package/richtexteditor/runtime/images/cpns_gradients.png +0 -0
  116. package/richtexteditor/runtime/images/cpns_hue2.png +0 -0
  117. package/richtexteditor/runtime/images/formbn.gif +0 -0
  118. package/richtexteditor/runtime/images/multiclavier.gif +0 -0
  119. package/richtexteditor/runtime/richtexteditor_content.css +362 -0
  120. package/richtexteditor/runtime/richtexteditor_preview.css +302 -0
  121. package/richtexteditor/runtime/richtexteditor_preview.js +4 -0
@@ -0,0 +1,2613 @@
1
+ <html xmlns="http://www.w3.org/1999/xhtml">
2
+ <head>
3
+ <meta http-equiv="Page-Enter" content="blendTrans(Duration=0.1)" />
4
+ <meta http-equiv="Page-Exit" content="blendTrans(Duration=0.1)" />
5
+
6
+ <script type="text/javascript">
7
+ function updateColor(c) {
8
+ parent.rtecolorpicker.update(c);
9
+ }
10
+ function selectColor(c) {
11
+ parent.rtecolorpicker.select(c);
12
+ }
13
+ function selectCancel() {
14
+ parent.rtecolorpicker.cancel();
15
+ }
16
+ function setCallback(cb) {
17
+ parent.rtecolorpicker.setCallback(cb);
18
+ }
19
+ </script>
20
+
21
+ <script type="text/javascript">
22
+
23
+ //alert("script load correctly v0.1");
24
+
25
+
26
+ /****************************************************************\
27
+ Cookie Functions
28
+ \****************************************************************/
29
+
30
+
31
+ function SetCookie(name, value, seconds) {
32
+ localStorage.setItem("rte-" + name, value);
33
+ }
34
+ function GetCookie(name) {
35
+ return localStorage.getItem("rte-" + name);
36
+ }
37
+ function GetCookieDictionary() {
38
+ var dict = {};
39
+ var cookies = document.cookie.split(';');
40
+ for (var i = 0; i < cookies.length; i++) {
41
+ var parts = cookies[i].split('=');
42
+ dict[parts[0].replace(/\s/g, '')] = unescape(parts[1]);
43
+ }
44
+ return dict;
45
+ }
46
+ function GetCookieArray() {
47
+ var arr = [];
48
+ var cookies = document.cookie.split(';');
49
+ for (var i = 0; i < cookies.length; i++) {
50
+ var parts = cookies[i].split('=');
51
+ var cookie = { name: parts[0].replace(/\s/g, ''), value: unescape(parts[1]) };
52
+ arr[arr.length] = cookie;
53
+ }
54
+ return arr;
55
+ }
56
+
57
+ var __defaultcustomlist = ["#ffffff", "#ffffff", "#ffffff", "#ffffff", "#ffffff", "#ffffff", "#ffffff", "#ffffff"];
58
+
59
+ function GetCustomColors() {
60
+ var customlist = __defaultcustomlist.concat();
61
+ for (var i = 0; i < 18; i++) {
62
+ var color = GetCustomColor(i);
63
+ if (color) customlist[i] = color;
64
+ }
65
+ return customlist;
66
+ }
67
+ function GetCustomColor(slot) {
68
+ return GetCookie("CECC" + slot);
69
+ }
70
+ function SetCustomColor(slot, color) {
71
+ SetCookie("CECC" + slot, color, 60 * 60 * 24 * 365);
72
+ }
73
+
74
+ var _origincolor = "";
75
+
76
+ document.onmouseover = function (event) {
77
+ event = window.event || event;
78
+ var t = event.srcElement || event.target;
79
+ if (t.className == "colordiv") {
80
+ firecolorchange(t.style.backgroundColor);
81
+ }
82
+ }
83
+ document.onmouseout = function (event) {
84
+ event = window.event || event;
85
+ var t = event.srcElement || event.target;
86
+ if (t.className == "colordiv") {
87
+ firecolorchange(_origincolor);
88
+ }
89
+ }
90
+ document.onclick = function (event) {
91
+ event = window.event || event;
92
+ var t = event.srcElement || event.target;
93
+ if (t.className == "colordiv") {
94
+ var showname = document.getElementById("CheckboxColorNames") && document.getElementById("CheckboxColorNames").checked;
95
+ if (showname) {
96
+ do_select(t.getAttribute("cname") || t.style.backgroundColor);
97
+ }
98
+ else {
99
+ do_select(t.getAttribute("cvalue") || t.style.backgroundColor);
100
+ }
101
+ }
102
+ }
103
+
104
+
105
+ var _editor;
106
+
107
+ function firecolorchange(change) {
108
+
109
+ }
110
+
111
+ if (top.dialogArguments) {
112
+ if (typeof (top.dialogArguments) == 'object') {
113
+ if (top.dialogArguments.onchange) {
114
+ firecolorchange = top.dialogArguments.onchange;
115
+ _origincolor = top.dialogArguments.color;
116
+ _editor = top.dialogArguments.editor;
117
+ }
118
+ }
119
+ }
120
+
121
+ var _selectedcolor = null;
122
+ function do_select(color) {
123
+ _selectedcolor = color;
124
+ firecolorchange(color);
125
+ var span = document.getElementById("divpreview");
126
+ if (span) span.value = color;
127
+ }
128
+ function do_saverecent(color) {
129
+ if (!color) return;
130
+ if (color.length != 7) return;
131
+ if (color.substring(0, 1) != "#") return;
132
+ var hex = color.substring(1, 7);
133
+ var recent = GetCookie("RecentColors");
134
+ console.log("load recent", recent);
135
+ if (!recent) recent = "";
136
+ if ((recent.length % 6) != 0) recent = "";
137
+ for (var i = 0; i < recent.length; i += 6) {
138
+ if (recent.substr(i, 6) == hex) {
139
+ recent = recent.substr(0, i) + recent.substr(i + 6);
140
+ i -= 6;
141
+ }
142
+ }
143
+ if (recent.length > 31 * 6)
144
+ recent = recent.substr(0, 31 * 6);
145
+ recent = hex + recent;
146
+ //alert(recent);
147
+ SetCookie("RecentColors", recent, 60 * 60 * 24 * 365);
148
+ console.log("save recent", recent);
149
+ }
150
+
151
+ setCallback(do_saverecent);
152
+
153
+ function do_insert() {
154
+ var color;
155
+ var divpreview = document.getElementById("divpreview");
156
+ if (divpreview)
157
+ color = divpreview.value;
158
+ else
159
+ color = _selectedcolor;
160
+ if (!color) return;
161
+ if (/^[0-9A-F]{6}$/ig.test(color)) {
162
+ color = "#" + color;
163
+ }
164
+ try {
165
+ document.createElement("SPAN").style.color = color;
166
+ do_saverecent(color);
167
+ selectColor(color);
168
+ }
169
+ catch (x) {
170
+ alert(x.message);
171
+ divpreview.value = "";
172
+ return false;
173
+ }
174
+ }
175
+
176
+ function do_Close() {
177
+ selectCancel();
178
+ }
179
+ </script>
180
+
181
+ <script type="text/javascript">
182
+ var POSITIONADJUSTX = 22;
183
+ var POSITIONADJUSTY = 52;
184
+ var POSITIONADJUSTZ = 48;
185
+
186
+ /*
187
+ * -----------------------------------------------------
188
+ * Author: Lewis E. Moten III
189
+ * Date: May, 16, 2004
190
+ * Homepage: http://www.lewismoten.com
191
+ * Email: lewis@moten.com
192
+ * -----------------------------------------------------
193
+ *
194
+ * This code is Copyright (c) 2004 Lewis Moten, all rights reserved.
195
+ * In order to receive the right to license this code for use on your
196
+ * site the original code must be downloaded from lewismoten.com.
197
+ * License is granted to user to reuse this code on their own Web
198
+ * site if and only if this entire copyright notice is included.
199
+ * Code written by Lewis Moten.
200
+ */
201
+
202
+
203
+ var ColorMode = 1;
204
+ var GradientPositionDark = new Boolean(false);
205
+ var frm = new Object();
206
+ var msg = new Object();
207
+ var _xmlDocs = new Array();
208
+ var _xmlIndex = -1;
209
+ var _xml = null;
210
+ LoadLanguage();
211
+
212
+ window.onload = window_load;
213
+
214
+ function initialize() {
215
+ frm.btnCancel.onclick = btnCancel_Click;
216
+ frm.btnOK.onclick = btnOK_Click;
217
+ frm.txtHSB_Hue.onkeyup = Hsb_Changed;
218
+ frm.txtHSB_Hue.onkeypress = validateNumber;
219
+ frm.txtHSB_Saturation.onkeyup = Hsb_Changed;
220
+ frm.txtHSB_Saturation.onkeypress = validateNumber;
221
+ frm.txtHSB_Brightness.onkeyup = Hsb_Changed;
222
+ frm.txtHSB_Brightness.onkeypress = validateNumber;
223
+ frm.txtRGB_Red.onkeyup = Rgb_Changed;
224
+ frm.txtRGB_Red.onkeypress = validateNumber;
225
+ frm.txtRGB_Green.onkeyup = Rgb_Changed;
226
+ frm.txtRGB_Green.onkeypress = validateNumber;
227
+ frm.txtRGB_Blue.onkeyup = Rgb_Changed;
228
+ frm.txtRGB_Blue.onkeypress = validateNumber;
229
+ frm.txtHex.onkeyup = Hex_Changed;
230
+ frm.txtHex.onkeypress = validateHex;
231
+ frm.btnWebSafeColor.onclick = btnWebSafeColor_Click;
232
+ frm.rdoHSB_Hue.onclick = rdoHsb_Hue_Click;
233
+ frm.rdoHSB_Saturation.onclick = rdoHsb_Saturation_Click;
234
+ frm.rdoHSB_Brightness.onclick = rdoHsb_Brightness_Click;
235
+
236
+ document.getElementById("pnlGradient_Top").onclick = pnlGradient_Top_Click;
237
+ document.getElementById("pnlGradient_Top").onmousemove = pnlGradient_Top_MouseMove;
238
+ document.getElementById("pnlGradient_Top").onmousedown = pnlGradient_Top_MouseDown;
239
+ document.getElementById("pnlGradient_Top").onmouseup = pnlGradient_Top_MouseUp;
240
+
241
+ document.getElementById("pnlVertical_Top").onclick = pnlVertical_Top_Click;
242
+ document.getElementById("pnlVertical_Top").onmousemove = pnlVertical_Top_MouseMove;
243
+ document.getElementById("pnlVertical_Top").onmousedown = pnlVertical_Top_MouseDown;
244
+ document.getElementById("pnlVertical_Top").onmouseup = pnlVertical_Top_MouseUp;
245
+ document.getElementById("pnlWebSafeColor").onclick = btnWebSafeColor_Click;
246
+ document.getElementById("pnlWebSafeColorBorder").onclick = btnWebSafeColor_Click;
247
+ document.getElementById("pnlOldColor").onclick = pnlOldClick_Click;
248
+
249
+ document.getElementById("lblHSB_Hue").onclick = rdoHsb_Hue_Click;
250
+ document.getElementById("lblHSB_Saturation").onclick = rdoHsb_Saturation_Click;
251
+ document.getElementById("lblHSB_Brightness").onclick = rdoHsb_Brightness_Click;
252
+
253
+ frm.txtHSB_Hue.focus();
254
+ window.focus();
255
+ }
256
+ function formatString(format) {
257
+ format = new String(format);
258
+ for (var i = 1; i < arguments.length; i++)
259
+ format = format.replace(new RegExp("\\{" + (i - 1) + "\\}"), arguments[i]);
260
+ return format;
261
+ }
262
+ function AddValue(o, value) {
263
+ value = new String(value).toLowerCase();
264
+ for (var i = 0; i < o.length; i++)
265
+ if (o[i] == value) return;
266
+ o[o.length] = value;
267
+ }
268
+ function SniffLanguage(l) {
269
+
270
+ }
271
+ function LoadNextLanguage() {
272
+
273
+ }
274
+ function LoadLanguage() {
275
+ // set default language (en-us)
276
+ msg.BadNumber = "A number between {0} and {1} is required. Closest value inserted.";
277
+ msg.Title = "Color Picker";
278
+ msg.SelectAColor = "Select a color:";
279
+ msg.OKButton = "OK";
280
+ msg.CancelButton = "Cancel";
281
+ msg.Recent = "Recent";
282
+ msg.WebSafeWarning = "Warning: not a web safe color";
283
+ msg.WebSafeClick = "Click to select web safe color";
284
+ msg.HsbHue = "H:";
285
+ msg.HsbHueTooltip = "Hue";
286
+ msg.HsbHueUnit = "%";
287
+ msg.HsbSaturation = "S:";
288
+ msg.HsbSaturationTooltip = "Saturation";
289
+ msg.HsbSaturationUnit = "%";
290
+ msg.HsbBrightness = "B:";
291
+ msg.HsbBrightnessTooltip = "Brightness";
292
+ msg.HsbBrightnessUnit = "%";
293
+ msg.RgbRed = "R:";
294
+ msg.RgbRedTooltip = "Red";
295
+ msg.RgbGreen = "G:";
296
+ msg.RgbGreenTooltip = "Green";
297
+ msg.RgbBlue = "B:";
298
+ msg.RgbBlueTooltip = "Blue";
299
+ msg.Hex = "#";
300
+ msg.RecentTooltip = "Recent:";
301
+
302
+ }
303
+ function AssignLanguage() {
304
+
305
+ }
306
+ function localize() {
307
+ SetHTML(
308
+ document.getElementById("lblSelectColorMessage"), msg.SelectAColor,
309
+ document.getElementById("lblRecent"), msg.Recent,
310
+ document.getElementById("lblHSB_Hue"), msg.HsbHue,
311
+ document.getElementById("lblHSB_Saturation"), msg.HsbSaturation,
312
+ document.getElementById("lblHSB_Brightness"), msg.HsbBrightness,
313
+ document.getElementById("lblRGB_Red"), msg.RgbRed,
314
+ document.getElementById("lblRGB_Green"), msg.RgbGreen,
315
+ document.getElementById("lblRGB_Blue"), msg.RgbBlue,
316
+ document.getElementById("lblHex"), msg.Hex,
317
+ document.getElementById("lblUnitHSB_Hue"), msg.HsbHueUnit,
318
+ document.getElementById("lblUnitHSB_Saturation"), msg.HsbSaturationUnit,
319
+ document.getElementById("lblUnitHSB_Brightness"), msg.HsbBrightnessUnit
320
+ );
321
+ SetValue(
322
+ frm.btnCancel, msg.CancelButton,
323
+ frm.btnOK, msg.OKButton
324
+ );
325
+ SetTitle(
326
+ frm.btnWebSafeColor, msg.WebSafeWarning,
327
+ document.getElementById("pnlWebSafeColor"), msg.WebSafeClick,
328
+ document.getElementById("pnlHSB_Hue"), msg.HsbHueTooltip,
329
+ document.getElementById("pnlHSB_Saturation"), msg.HsbSaturationTooltip,
330
+ document.getElementById("pnlHSB_Brightness"), msg.HsbBrightnessTooltip,
331
+ document.getElementById("pnlRGB_Red"), msg.RgbRedTooltip,
332
+ document.getElementById("pnlRGB_Green"), msg.RgbGreenTooltip,
333
+ document.getElementById("pnlRGB_Blue"), msg.RgbBlueTooltip
334
+ );
335
+
336
+ }
337
+ function window_load(e) {
338
+ frm = document.getElementById("frmColorPicker");
339
+ localize();
340
+ initialize();
341
+
342
+ var hex = GetQuery("Color").toUpperCase();
343
+ if (hex == "") hex = "FFFFFF";
344
+ if (hex.length == 7) hex = hex.substr(1, 6);
345
+ frm.txtHex.value = hex;
346
+ Hex_Changed(e);
347
+ hex = Form_Get_Hex();
348
+ SetBg(document.getElementById("pnlOldColor"), hex);
349
+
350
+ frm.ColorType[new Number(GetCookie("ColorMode") || 0)].checked = true;
351
+ ColorMode_Changed(e);
352
+
353
+ var recent = GetCookie("RecentColors") || "";
354
+
355
+ var RecentTooltip = msg.RecentTooltip;
356
+ for (var i = 1; i < 33; i++)
357
+ if (recent.length / 6 >= i) {
358
+ hex = recent.substr((i - 1) * 6, 6);
359
+ var rgb = HexToRgb(hex);
360
+ var title = formatString(msg.RecentTooltip, hex, rgb[0], rgb[1], rgb[2]);
361
+ SetBg(document.getElementById("pnlRecent" + i), hex);
362
+ SetTitle(document.getElementById("pnlRecent" + i), title);
363
+ document.getElementById("pnlRecent" + i).onclick = pnlRecent_Click;
364
+ }
365
+ else
366
+ document.getElementById("pnlRecent" + i).style.border = "0px";
367
+ //Hide(document.all["pnlRecent" + i]);
368
+ }
369
+
370
+ function pnlRecent_Click(e) {
371
+ var color = e.target.style.backgroundColor;
372
+ if (color.indexOf("rgb") != -1) {
373
+ var rgb = new Array();
374
+ color = color.substr(color.indexOf("(") + 1);
375
+ color = color.substr(0, color.indexOf(")"));
376
+ rgb[0] = new Number(color.substr(0, color.indexOf(",")));
377
+ color = color.substr(color.indexOf(",") + 1);
378
+ rgb[1] = new Number(color.substr(0, color.indexOf(",")));
379
+ rgb[2] = new Number(color.substr(color.indexOf(",") + 1));
380
+ color = RgbToHex(rgb);
381
+ }
382
+ else {
383
+ color = color.substr(1, 6).toUpperCase();
384
+ }
385
+ frm.txtHex.value = color;
386
+ Hex_Changed(e);
387
+ }
388
+ function pnlOldClick_Click(e) {
389
+ frm.txtHex.value = document.getElementById("pnlOldColor").style.backgroundColor.substr(1, 6).toUpperCase();
390
+ Hex_Changed(e);
391
+ }
392
+ function rdoHsb_Hue_Click(e) {
393
+ frm.rdoHSB_Hue.checked = true;
394
+ ColorMode_Changed(e);
395
+ }
396
+ function rdoHsb_Saturation_Click(e) {
397
+ frm.rdoHSB_Saturation.checked = true;
398
+ ColorMode_Changed(e);
399
+ }
400
+ function rdoHsb_Brightness_Click(e) {
401
+ frm.rdoHSB_Brightness.checked = true;
402
+ ColorMode_Changed(e);
403
+ }
404
+ function Hide() {
405
+ for (var i = 0; i < arguments.length; i++)
406
+ if (arguments[i])
407
+ arguments[i].style.display = "none";
408
+ }
409
+ function Show() {
410
+ for (var i = 0; i < arguments.length; i++)
411
+ if (arguments[i])
412
+ arguments[i].style.display = "";
413
+ }
414
+ function SetValue() {
415
+ for (var i = 0; i < arguments.length; i += 2)
416
+ arguments[i].value = arguments[i + 1];
417
+ }
418
+ function SetTitle() {
419
+ for (var i = 0; i < arguments.length; i += 2)
420
+ arguments[i].title = arguments[i + 1];
421
+ }
422
+ function SetHTML() {
423
+ for (var i = 0; i < arguments.length; i += 2)
424
+ arguments[i].innerHTML = arguments[i + 1];
425
+ }
426
+ function SetBg() {
427
+ for (var i = 0; i < arguments.length; i += 2) {
428
+ if (arguments[i])
429
+ arguments[i].style.backgroundColor = "#" + arguments[i + 1];
430
+ }
431
+ }
432
+ function SetBgPosition() {
433
+ for (var i = 0; i < arguments.length; i += 3)
434
+ arguments[i].style.backgroundPosition = arguments[i + 1] + "px " + arguments[i + 2] + "px";
435
+ }
436
+ function ColorMode_Changed(e) {
437
+ for (var i = 0; i < 3; i++)
438
+ if (frm.ColorType[i].checked) ColorMode = i;
439
+ SetCookie("ColorMode", ColorMode, 60 * 60 * 24 * 365);
440
+
441
+ Hide(
442
+ document.getElementById("pnlGradientHsbHue_Hue"),
443
+ document.getElementById("pnlGradientHsbHue_Black"),
444
+ document.getElementById("pnlGradientHsbHue_White"),
445
+ document.getElementById("pnlVerticalHsbHue_Background"),
446
+ document.getElementById("pnlVerticalHsbSaturation_Hue"),
447
+ document.getElementById("pnlVerticalHsbSaturation_White"),
448
+ document.getElementById("pnlVerticalHsbBrightness_Hue"),
449
+ document.getElementById("pnlVerticalHsbBrightness_Black"),
450
+ document.getElementById("pnlVerticalRgb_Start"),
451
+ document.getElementById("pnlVerticalRgb_End"),
452
+ document.getElementById("pnlGradientRgb_Base"),
453
+ document.getElementById("pnlGradientRgb_Invert"),
454
+ document.getElementById("pnlGradientRgb_Overlay1"),
455
+ document.getElementById("pnlGradientRgb_Overlay2")
456
+ );
457
+
458
+ switch (ColorMode) {
459
+ case 0:
460
+ document.getElementById("imgGradient").src = "images/cpns_ColorSpace1.png";
461
+ Show(
462
+ document.getElementById("pnlGradientHsbHue_Hue"),
463
+ document.getElementById("pnlGradientHsbHue_Black"),
464
+ document.getElementById("pnlGradientHsbHue_White"),
465
+ document.getElementById("pnlVerticalHsbHue_Background")
466
+ );
467
+ Hsb_Changed(e);
468
+ break;
469
+ case 1:
470
+ document.getElementById("imgGradient").src = "images/cpns_ColorSpace2.png";
471
+ document.getElementById("pnlVerticalHsbSaturation_Hue").src = "images/cpns_Vertical1.png";
472
+ Show(
473
+ document.getElementById("pnlGradientHsbHue_Hue"),
474
+ document.getElementById("pnlVerticalHsbSaturation_Hue")
475
+ );
476
+ document.getElementById("pnlGradientHsbHue_Hue").style.backgroundColor = "#000000";
477
+ Hsb_Changed(e);
478
+ break;
479
+ case 2:
480
+ document.getElementById("imgGradient").src = "images/cpns_ColorSpace2.png";
481
+ document.getElementById("pnlVerticalHsbSaturation_Hue").src = "images/cpns_Vertical2.png";
482
+ Show(
483
+ document.getElementById("pnlGradientHsbHue_Hue"),
484
+ document.getElementById("pnlVerticalHsbSaturation_Hue")
485
+ );
486
+ document.getElementById("pnlGradientHsbHue_Hue").style.backgroundColor = "#ffffff";
487
+ Hsb_Changed(e);
488
+ break;
489
+ default:
490
+ break;
491
+ }
492
+ }
493
+ function btnWebSafeColor_Click(e) {
494
+ var rgb = HexToRgb(frm.txtHex.value);
495
+ rgb = RgbToWebSafeRgb(rgb);
496
+ frm.txtHex.value = RgbToHex(rgb);
497
+ Hex_Changed(e);
498
+ }
499
+ function checkWebSafe() {
500
+ var rgb = Form_Get_Rgb();
501
+ if (RgbIsWebSafe(rgb)) {
502
+ Hide(
503
+ frm.btnWebSafeColor,
504
+ document.getElementById("pnlWebSafeColor"),
505
+ document.getElementById("pnlWebSafeColorBorder")
506
+ );
507
+ }
508
+ else {
509
+ rgb = RgbToWebSafeRgb(rgb);
510
+ SetBg(document.getElementById("pnlWebSafeColor"), RgbToHex(rgb));
511
+ Show(
512
+ frm.btnWebSafeColor,
513
+ document.getElementById("pnlWebSafeColor"),
514
+ document.getElementById("pnlWebSafeColorBorder")
515
+ );
516
+ }
517
+ }
518
+ function validateNumber(e) {
519
+ var key = String.fromCharCode(e.which);
520
+ if (IgnoreKey(e)) return;
521
+ if ("01234567879".indexOf(key) != -1) return;
522
+ e.which = 0;
523
+ }
524
+ function validateHex(e) {
525
+ if (IgnoreKey(e)) return;
526
+ var key = String.fromCharCode(e.which);
527
+ if ("abcdef".indexOf(key) != -1) {
528
+ //e.which = key.toUpperCase().charCodeAt(0);
529
+ return;
530
+ }
531
+ if ("01234567879ABCDEF".indexOf(key) != -1) return;
532
+ //e.which = 0;
533
+ }
534
+ function IgnoreKey(e) {
535
+ var key = String.fromCharCode(e.which);
536
+ var keys = new Array(0, 8, 9, 13, 27);
537
+ if (key == null) return true;
538
+ for (var i = 0; i < 5; i++)
539
+ if (e.which == keys[i]) return true;
540
+ return false;
541
+ }
542
+ function btnCancel_Click() {
543
+ selectCancel();
544
+ }
545
+ function btnOK_Click() {
546
+ var hex = "#"+ new String(frm.txtHex.value);
547
+ //alert(hex);
548
+ do_saverecent(hex);
549
+ selectColor(hex);
550
+ }
551
+ function SetGradientPosition(e) {
552
+
553
+ var x = e.offsetX;
554
+ var y = e.offsetY;
555
+
556
+ if (e.type == "mousemove" || e.type == "mouseup") {
557
+ x -= 12; //browser bug , the offsetX includes offsetLeft
558
+ y -= 32; //browser bug
559
+ }
560
+
561
+ x = x < 0 ? 0 : x > 255 ? 255 : x;
562
+ y = y < 0 ? 0 : y > 255 ? 255 : y;
563
+
564
+ SetBgPosition(document.getElementById("pnlGradientPosition"), x - 5, y - 5);
565
+ switch (ColorMode) {
566
+ case 0:
567
+ var hsb = new Array(0, 0, 0);
568
+ hsb[1] = x / 255;
569
+ hsb[2] = 1 - (y / 255);
570
+ frm.txtHSB_Saturation.value = Math.round(hsb[1] * 100);
571
+ frm.txtHSB_Brightness.value = Math.round(hsb[2] * 100);
572
+ Hsb_Changed(e);
573
+ break;
574
+ case 1:
575
+ var hsb = new Array(0, 0, 0);
576
+ hsb[0] = x / 255;
577
+ hsb[2] = 1 - (y / 255);
578
+ frm.txtHSB_Hue.value = hsb[0] == 1 ? 0 : Math.round(hsb[0] * 360);
579
+ frm.txtHSB_Brightness.value = Math.round(hsb[2] * 100);
580
+ Hsb_Changed(e);
581
+ break;
582
+ case 2:
583
+ var hsb = new Array(0, 0, 0);
584
+ hsb[0] = x / 255;
585
+ hsb[1] = 1 - (y / 255);
586
+ frm.txtHSB_Hue.value = hsb[0] == 1 ? 0 : Math.round(hsb[0] * 360);
587
+ frm.txtHSB_Saturation.value = Math.round(hsb[1] * 100);
588
+ Hsb_Changed(e);
589
+ break;
590
+ }
591
+ }
592
+ function Hex_Changed(e) {
593
+ var hex = Form_Get_Hex();
594
+ var rgb = HexToRgb(hex);
595
+ var hsb = RgbToHsb(rgb);
596
+ Form_Set_Rgb(rgb);
597
+ Form_Set_Hsb(hsb);
598
+ SetBg(document.getElementById("pnlNewColor"), hex);
599
+ SetupCursors(e);
600
+ SetupGradients();
601
+ checkWebSafe();
602
+ updateColor("#" + hex);
603
+ }
604
+ function Rgb_Changed(e) {
605
+ var rgb = Form_Get_Rgb();
606
+ var hsb = RgbToHsb(rgb);
607
+ var hex = RgbToHex(rgb);
608
+ Form_Set_Hsb(hsb);
609
+ Form_Set_Hex(hex);
610
+ SetBg(document.getElementById("pnlNewColor"), hex);
611
+ SetupCursors(e);
612
+ SetupGradients();
613
+ checkWebSafe();
614
+ updateColor("#" + hex);
615
+ }
616
+ function Hsb_Changed(e) {
617
+ var hsb = Form_Get_Hsb();
618
+ var rgb = HsbToRgb(hsb);
619
+ var hex = RgbToHex(rgb);
620
+ Form_Set_Rgb(rgb);
621
+ Form_Set_Hex(hex);
622
+ SetBg(document.getElementById("pnlNewColor"), hex);
623
+ SetupCursors(e);
624
+ SetupGradients();
625
+ checkWebSafe();
626
+ updateColor("#"+hex);
627
+ }
628
+ function Form_Set_Hex(hex) {
629
+ frm.txtHex.value = hex;
630
+ }
631
+
632
+ function Form_Get_Hex() {
633
+ var hex = new String(frm.txtHex.value);
634
+ for (var i = 0; i < hex.length; i++)
635
+ if ("0123456789ABCDEFabcdef".indexOf(hex.substr(i, 1)) == -1) {
636
+ hex = "000000";
637
+ frm.txtHex.value = hex;
638
+ alert(formatString(msg.BadNumber, "000000", "FFFFFF"));
639
+ break;
640
+ }
641
+ while (hex.length < 6)
642
+ hex = "0" + hex;
643
+ return hex;
644
+ }
645
+ function Form_Get_Hsb() {
646
+ var hsb = new Array(0, 0, 0);
647
+
648
+ hsb[0] = new Number(frm.txtHSB_Hue.value) / 360;
649
+ hsb[1] = new Number(frm.txtHSB_Saturation.value) / 100;
650
+ hsb[2] = new Number(frm.txtHSB_Brightness.value) / 100;
651
+ if (hsb[0] > 1 || isNaN(hsb[0])) {
652
+ hsb[0] = 1;
653
+ frm.txtHSB_Hue.value = 360;
654
+ alert(formatString(msg.BadNumber, 0, 360));
655
+ }
656
+ if (hsb[1] > 1 || isNaN(hsb[1])) {
657
+ hsb[1] = 1;
658
+ frm.txtHSB_Saturation.value = 100;
659
+ alert(formatString(msg.BadNumber, 0, 100));
660
+ }
661
+ if (hsb[2] > 1 || isNaN(hsb[2])) {
662
+ hsb[2] = 1;
663
+ frm.txtHSB_Brightness.value = 100;
664
+ alert(formatString(msg.BadNumber, 0, 100));
665
+ }
666
+ return hsb;
667
+ }
668
+ function Form_Set_Hsb(hsb) {
669
+ SetValue(
670
+ frm.txtHSB_Hue, Math.round(hsb[0] * 360),
671
+ frm.txtHSB_Saturation, Math.round(hsb[1] * 100),
672
+ frm.txtHSB_Brightness, Math.round(hsb[2] * 100)
673
+ )
674
+ }
675
+ function Form_Get_Rgb() {
676
+ var rgb = new Array(0, 0, 0);
677
+ rgb[0] = new Number(frm.txtRGB_Red.value);
678
+ rgb[1] = new Number(frm.txtRGB_Green.value);
679
+ rgb[2] = new Number(frm.txtRGB_Blue.value);
680
+
681
+ if (rgb[0] > 255 || isNaN(rgb[0]) || rgb[0] != Math.round(rgb[0])) {
682
+ rgb[0] = 255;
683
+ frm.txtRGB_Red.value = 255;
684
+ alert(formatString(msg.BadNumber, 0, 255));
685
+ }
686
+ if (rgb[1] > 255 || isNaN(rgb[1]) || rgb[1] != Math.round(rgb[1])) {
687
+ rgb[1] = 255;
688
+ frm.txtRGB_Green.value = 255;
689
+ alert(formatString(msg.BadNumber, 0, 255));
690
+ }
691
+ if (rgb[2] > 255 || isNaN(rgb[2]) || rgb[2] != Math.round(rgb[2])) {
692
+ rgb[2] = 255;
693
+ frm.txtRGB_Blue.value = 255;
694
+ alert(formatString(msg.BadNumber, 0, 255));
695
+ }
696
+ return rgb;
697
+ }
698
+ function Form_Set_Rgb(rgb) {
699
+ frm.txtRGB_Red.value = rgb[0];
700
+ frm.txtRGB_Green.value = rgb[1];
701
+ frm.txtRGB_Blue.value = rgb[2];
702
+ }
703
+ function SetupCursors(e) {
704
+ var hsb = Form_Get_Hsb();
705
+ var rgb = Form_Get_Rgb();
706
+ if (RgbToYuv(rgb)[0] >= .5) SetGradientPositionDark();
707
+ else SetGradientPositionLight();
708
+ if (e.target != null) {
709
+ if (e.target.id == "pnlGradient_Top") return;
710
+ if (e.target.id == "pnlVertical_Top") return;
711
+ }
712
+ var x;
713
+ var y;
714
+ var z;
715
+
716
+ if (ColorMode >= 0 && ColorMode <= 2)
717
+ for (var i = 0; i < 3; i++)
718
+ hsb[i] *= 255;
719
+
720
+ switch (ColorMode) {
721
+ case 0:
722
+ x = hsb[1];
723
+ y = hsb[2];
724
+ z = hsb[0] == 0 ? 1 : hsb[0];
725
+ break;
726
+ case 1:
727
+ x = hsb[0] == 0 ? 1 : hsb[0];
728
+ y = hsb[2];
729
+ z = hsb[1];
730
+ break;
731
+ case 2:
732
+ x = hsb[0] == 0 ? 1 : hsb[0];
733
+ y = hsb[1];
734
+ z = hsb[2];
735
+ break;
736
+ }
737
+
738
+ y = 255 - y;
739
+ z = 255 - z;
740
+
741
+ SetBgPosition(document.getElementById("pnlGradientPosition"), x - 5, y - 5);
742
+ document.getElementById("pnlVerticalPosition").style.top = (z + 27) + "px";
743
+ }
744
+ function SetupGradients() {
745
+ var hsb = Form_Get_Hsb();
746
+ var rgb = Form_Get_Rgb();
747
+ switch (ColorMode) {
748
+ case 0:
749
+ SetBg(document.getElementById("pnlGradientHsbHue_Hue"), RgbToHex(HueToRgb(hsb[0])));
750
+ break;
751
+ case 1:
752
+ SetBg(document.getElementById("pnlVerticalHsbSaturation_Hue"), RgbToHex(HsbToRgb(new Array(hsb[0], 1, hsb[2]))));
753
+ break;
754
+ case 2:
755
+ SetBg(document.getElementById("pnlVerticalHsbSaturation_Hue"), RgbToHex(HsbToRgb(new Array(hsb[0], hsb[1], 1))));
756
+ break;
757
+ default:
758
+ }
759
+ }
760
+ function SetGradientPositionDark() {
761
+ if (GradientPositionDark) return;
762
+ GradientPositionDark = true;
763
+ document.getElementById("pnlGradientPosition").style.backgroundImage = "url(images/cpns_GradientPositionDark.gif)";
764
+ }
765
+ function SetGradientPositionLight() {
766
+ if (!GradientPositionDark) return;
767
+ GradientPositionDark = false;
768
+ document.getElementById("pnlGradientPosition").style.backgroundImage = "url(images/cpns_GradientPositionLight.gif)";
769
+ }
770
+ function pnlGradient_Top_Click(e) {
771
+ e.cancelBubble = true;
772
+ SetGradientPosition(e)
773
+ document.getElementById("pnlGradient_Top").className = "GradientNormal";
774
+ _down = false;
775
+ }
776
+ var _down = false;
777
+ function pnlGradient_Top_MouseMove(e) {
778
+ e.cancelBubble = true;
779
+ if (!_down) return;
780
+ SetGradientPosition(e)
781
+ }
782
+ function pnlGradient_Top_MouseDown(e) {
783
+ e.cancelBubble = true;
784
+ _down = true;
785
+ SetGradientPosition(e)
786
+ document.getElementById("pnlGradient_Top").className = "GradientFullScreen";
787
+ }
788
+ function pnlGradient_Top_MouseUp(e) {
789
+ _down = false;
790
+ e.cancelBubble = true;
791
+ SetGradientPosition(e)
792
+ document.getElementById("pnlGradient_Top").className = "GradientNormal";
793
+ }
794
+ function Document_MouseUp() {
795
+ e.cancelBubble = true;
796
+ document.getElementById("pnlGradient_Top").className = "GradientNormal";
797
+ }
798
+ function SetVerticalPosition(e) {
799
+
800
+ var z = e.offsetY-6;
801
+
802
+ if (z < 27) z = 27;
803
+ if (z > 282) z = 282;
804
+ document.getElementById("pnlVerticalPosition").style.top = z + "px";
805
+ z = 1 - ((z - 27) / 255);
806
+
807
+ switch (ColorMode) {
808
+ case 0:
809
+ if (z == 1) z = 0;
810
+ frm.txtHSB_Hue.value = Math.round(z * 360);
811
+ Hsb_Changed(e);
812
+ break;
813
+ case 1:
814
+ frm.txtHSB_Saturation.value = Math.round(z * 100);
815
+ Hsb_Changed(e);
816
+ break;
817
+ case 2:
818
+ frm.txtHSB_Brightness.value = Math.round(z * 100);
819
+ Hsb_Changed(e);
820
+ break;
821
+ }
822
+ }
823
+ function pnlVertical_Top_Click(e) {
824
+ SetVerticalPosition(e, e.pageY - 5);
825
+ e.cancelBubble = true;
826
+ }
827
+ function pnlVertical_Top_MouseMove(e) {
828
+ if (!window._isverdown) return;
829
+ if (e.which != 1) return;
830
+ SetVerticalPosition(e, e.pageY - 5);
831
+ e.cancelBubble = true;
832
+ }
833
+ function pnlVertical_Top_MouseDown(e) {
834
+ window._isverdown = true;
835
+ SetVerticalPosition(e, e.pageY - 5);
836
+ e.cancelBubble = true;
837
+ }
838
+ function pnlVertical_Top_MouseUp(e) {
839
+ window._isverdown = false;
840
+ SetVerticalPosition(e, e.pageY - 5);
841
+ e.cancelBubble = true;
842
+ }
843
+
844
+
845
+ function GetQuery(name) {
846
+ var i = 0;
847
+ while (window.location.search.indexOf(name + "=", i) != -1) {
848
+ var value = window.location.search.substr(window.location.search.indexOf(name + "=", i));
849
+ value = value.substr(name.length + 1);
850
+ if (value.indexOf("&") != -1)
851
+ if (value.indexOf("&") == 0)
852
+ value = "";
853
+ else
854
+ value = value.substr(0, value.indexOf("&"));
855
+ return unescape(value);
856
+ }
857
+ return "";
858
+ }
859
+ function RgbIsWebSafe(rgb) {
860
+ var hex = RgbToHex(rgb);
861
+ for (var i = 0; i < 3; i++)
862
+ if ("00336699CCFF".indexOf(hex.substr(i * 2, 2)) == -1) return false;
863
+ return true;
864
+ }
865
+ function RgbToWebSafeRgb(rgb) {
866
+ var safeRgb = new Array(rgb[0], rgb[1], rgb[2]);
867
+ if (RgbIsWebSafe(rgb)) return safeRgb;
868
+ var safeValue = new Array(0x00, 0x33, 0x66, 0x99, 0xCC, 0xFF);
869
+ for (var i = 0; i < 3; i++)
870
+ for (var j = 1; j < 6; j++)
871
+ if (safeRgb[i] > safeValue[j - 1] && safeRgb[i] < safeValue[j]) {
872
+ if (safeRgb[i] - safeValue[j - 1] > safeValue[j] - safeRgb[i])
873
+ safeRgb[i] = safeValue[j];
874
+ else
875
+ safeRgb[i] = safeValue[j - 1];
876
+ break;
877
+ }
878
+ return safeRgb;
879
+ }
880
+ function RgbToYuv(rgb) {
881
+ var yuv = new Array();
882
+
883
+ yuv[0] = (rgb[0] * 0.299 + rgb[1] * 0.587 + rgb[2] * 0.114) / 255;
884
+ yuv[1] = (rgb[0] * -0.169 + rgb[1] * -0.332 + rgb[2] * 0.500 + 128) / 255;
885
+ yuv[2] = (rgb[0] * 0.500 + rgb[1] * -0.419 + rgb[2] * -0.0813 + 128) / 255;
886
+
887
+ return yuv;
888
+ }
889
+ function RgbToHsb(rgb) {
890
+ var sRgb = new Array(rgb[0], rgb[1], rgb[2]);
891
+ var min = new Number(1);
892
+ var max = new Number(0);
893
+ var delta = new Number(1);
894
+ var hsb = new Array(0, 0, 0);
895
+ var deltaRgb = new Array();
896
+
897
+ for (var i = 0; i < 3; i++) {
898
+ sRgb[i] = rgb[i] / 255;
899
+ if (sRgb[i] < min) min = sRgb[i];
900
+ if (sRgb[i] > max) max = sRgb[i];
901
+ }
902
+
903
+ delta = max - min;
904
+ hsb[2] = max;
905
+
906
+ if (delta == 0) return hsb;
907
+
908
+ hsb[1] = delta / max;
909
+
910
+ for (var i = 0; i < 3; i++)
911
+ deltaRgb[i] = (((max - sRgb[i]) / 6) + (delta / 2)) / delta;
912
+
913
+ if (sRgb[0] == max)
914
+ hsb[0] = deltaRgb[2] - deltaRgb[1];
915
+ else if (sRgb[1] == max)
916
+ hsb[0] = (1 / 3) + deltaRgb[0] - deltaRgb[2];
917
+ else if (sRgb[2] == max)
918
+ hsb[0] = (2 / 3) + deltaRgb[1] - deltaRgb[0];
919
+
920
+ if (hsb[0] < 0)
921
+ hsb[0] += 1;
922
+ else if (hsb[0] > 1)
923
+ hsb[0] -= 1;
924
+ return hsb;
925
+ }
926
+ function HsbToRgb(hsb) {
927
+ var rgb = HueToRgb(hsb[0]);
928
+ var s = hsb[2] * 255;
929
+
930
+ for (var i = 0; i < 3; i++) {
931
+ rgb[i] = rgb[i] * hsb[2];
932
+ rgb[i] = ((rgb[i] - s) * hsb[1]) + s;
933
+ rgb[i] = Math.round(rgb[i]);
934
+ }
935
+ return rgb;
936
+ }
937
+ function RgbToHex(rgb) {
938
+ var hex = new String();
939
+
940
+ for (var i = 0; i < 3; i++) {
941
+ rgb[2 - i] = Math.round(rgb[2 - i]);
942
+ hex = rgb[2 - i].toString(16) + hex;
943
+ if (hex.length % 2 == 1) hex = "0" + hex;
944
+ }
945
+
946
+ return hex.toUpperCase();
947
+ }
948
+ function HexToRgb(hex) {
949
+ var rgb = new Array();
950
+ for (var i = 0; i < 3; i++)
951
+ rgb[i] = new Number("0x" + hex.substr(i * 2, 2));
952
+ return rgb;
953
+ }
954
+ function HueToRgb(hue) {
955
+ var degrees = hue * 360;
956
+ var rgb = new Array(0, 0, 0);
957
+ var percent = (degrees % 60) / 60;
958
+
959
+ if (degrees < 60) {
960
+ rgb[0] = 255;
961
+ rgb[1] = percent * 255;
962
+ }
963
+ else if (degrees < 120) {
964
+ rgb[1] = 255;
965
+ rgb[0] = (1 - percent) * 255;
966
+ }
967
+ else if (degrees < 180) {
968
+ rgb[1] = 255;
969
+ rgb[2] = percent * 255;
970
+ }
971
+ else if (degrees < 240) {
972
+ rgb[2] = 255;
973
+ rgb[1] = (1 - percent) * 255;
974
+ }
975
+ else if (degrees < 300) {
976
+ rgb[2] = 255;
977
+ rgb[0] = percent * 255;
978
+ }
979
+ else if (degrees < 360) {
980
+ rgb[0] = 255;
981
+ rgb[2] = (1 - percent) * 255;
982
+ }
983
+
984
+ return rgb;
985
+ }
986
+ function CheckHexSelect() {
987
+ if (window.do_select && window.frm && frm.txtHex) {
988
+ var color = "#" + frm.txtHex.value;
989
+ if (color.length == 7) {
990
+ if (window.__cphex != color) {
991
+ window.__cphex = color;
992
+ window.do_select(color)
993
+ }
994
+ }
995
+ }
996
+ }
997
+ setInterval(CheckHexSelect, 10);
998
+ </script>
999
+
1000
+ <style>
1001
+ body, input, textarea, button, select, fieldset, table {
1002
+ color: windowtext;
1003
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
1004
+ font-size: 12px;
1005
+ }
1006
+
1007
+ table, textarea {
1008
+ text-align: left;
1009
+ }
1010
+
1011
+ button {
1012
+ padding-top: 1px;
1013
+ height: 22px;
1014
+ }
1015
+
1016
+ .formbutton {
1017
+ cursor: pointer;
1018
+ padding: 1px 10px;
1019
+ }
1020
+
1021
+ #uploader input {
1022
+ cursor: pointer;
1023
+ padding: 1px 10px;
1024
+ height: 21px;
1025
+ vertical-align: top;
1026
+ }
1027
+
1028
+ #uploader {
1029
+ padding: 10px 0 10px 30px;
1030
+ width: 100px;
1031
+ }
1032
+
1033
+ fieldset {
1034
+ border: 1px solid #dddddd;
1035
+ padding: 2px;
1036
+ }
1037
+
1038
+ .boxBg {
1039
+ background-color: #dddddd;
1040
+ }
1041
+
1042
+ .boxBorder {
1043
+ border: 1px solid #dddddd;
1044
+ }
1045
+
1046
+ .normal {
1047
+ color: windowtext;
1048
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
1049
+ font-size: 11px;
1050
+ }
1051
+
1052
+ .sortable {
1053
+ color: windowtext;
1054
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
1055
+ font-size: 11px;
1056
+ }
1057
+
1058
+ body {
1059
+ overflow: hidden;
1060
+ margin: 0px;
1061
+ padding: 0px;
1062
+ height: 100%;
1063
+ }
1064
+
1065
+ .buttons a {
1066
+ width: 100px;
1067
+ margin: 0 7px 3px 0;
1068
+ text-decoration: none;
1069
+ background-color: #f5f5f5;
1070
+ background: url(images/formbg.gif) repeat-x left top;
1071
+ border-top: solid 1px #cccccc;
1072
+ border-left: solid 1px #cccccc;
1073
+ border-right: solid 1px #aaaaaa;
1074
+ border-bottom: solid 1px #aaaaaa;
1075
+ padding: 4px 12px 5px 5px;
1076
+ display: block;
1077
+ cursor: pointer;
1078
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
1079
+ font-size: 11px;
1080
+ line-height: 120%;
1081
+ color: #333;
1082
+ outline: none;
1083
+ font-weight: normal;
1084
+ }
1085
+
1086
+ .buttons a img {
1087
+ margin: 0 3px -3px 0 !important;
1088
+ width: 16px;
1089
+ height: 16px;
1090
+ padding: 0 !important;
1091
+ border: none !important;
1092
+ display: inline !important;
1093
+ }
1094
+
1095
+ .buttons a:hover {
1096
+ background-color: #C0DDFC;
1097
+ background: url(images/formbg2.gif) repeat-x left top;
1098
+ border: 1px solid #3388ff;
1099
+ color: #333;
1100
+ }
1101
+
1102
+ .buttons a.current {
1103
+ background-color: #C0DDFC;
1104
+ background: url(images/formbg2.gif) repeat-x left top;
1105
+ border: 1px solid #3388ff;
1106
+ color: #333;
1107
+ }
1108
+
1109
+ .buttons a.current:hover {
1110
+ background: url(images/formbg.gif) repeat-x left top;
1111
+ border-top: solid 1px #cccccc;
1112
+ border-left: solid 1px #cccccc;
1113
+ border-right: solid 1px #aaaaaa;
1114
+ border-bottom: solid 1px #aaaaaa;
1115
+ }
1116
+
1117
+ #div_demo {
1118
+ position: static !important;
1119
+ width: 100% !important;
1120
+ height: 100% !important;
1121
+ }
1122
+
1123
+ #outer {
1124
+ width: 300px;
1125
+ overflow: auto;
1126
+ height: 150px;
1127
+ margin-top: 7px;
1128
+ background-color: #ffffff;
1129
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
1130
+ font-size: 11px;
1131
+ border: #dddddd 1px solid;
1132
+ }
1133
+
1134
+ .inputbuttoncancel, .inputbuttoninsert {
1135
+ width: 80px;
1136
+ padding-top: 2px;
1137
+ }
1138
+
1139
+ .dialogButton {
1140
+ border: 1px solid #f5f5f4;
1141
+ padding: 1px;
1142
+ }
1143
+
1144
+ .editimgDisabled {
1145
+ /*filter:gray alpha(opacity=25);opacity: .25; -moz-opacity: .25;*/
1146
+ }
1147
+
1148
+ .filelistHeadCol A {
1149
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
1150
+ font-size: 11px;
1151
+ /* cursor: default; */
1152
+ color: windowtext;
1153
+ }
1154
+
1155
+ a.filelistHeadCol:visited, a.filelistHeadCol:link /* Font used for links in the navigation menu */ {
1156
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
1157
+ font-size: 11px;
1158
+ color: #ffffff;
1159
+ text-decoration: none;
1160
+ }
1161
+
1162
+ a.filelistHeadCol:Hover /* Font used for hovering over a link in the navigation menu */ {
1163
+ color: #FF3300;
1164
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
1165
+ font-size: 11px;
1166
+ }
1167
+
1168
+ #container {
1169
+ padding: 10px;
1170
+ margin: 0;
1171
+ text-align: center;
1172
+ background: #eeeeee;
1173
+ }
1174
+
1175
+ #container-bottom {
1176
+ clear: both;
1177
+ text-align: right;
1178
+ padding-right: 30px;
1179
+ margin-right: 30px;
1180
+ background: #eeeeee;
1181
+ margin-top: 5px;
1182
+ }
1183
+
1184
+ .tab-pane-control.tab-pane {
1185
+ position: relative;
1186
+ width: 100%;
1187
+ }
1188
+
1189
+ .tab-pane-control.tab-pane {
1190
+ position: relative;
1191
+ width: 100%;
1192
+ }
1193
+
1194
+ .tab-pane-control .tab-row .tab {
1195
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
1196
+ font-size: 11px;
1197
+ display: inline;
1198
+ margin: 1px -2px 1px 2px;
1199
+ float: left;
1200
+ padding: 2px 5px 3px 5px;
1201
+ background: #ECECEC url(images/formbn.gif) repeat-x;
1202
+ border: 1px solid;
1203
+ border-color: #898C95;
1204
+ border-bottom: 0;
1205
+ z-index: 1;
1206
+ position: relative;
1207
+ top: 0;
1208
+ cursor: pointer;
1209
+ }
1210
+
1211
+ .tab-pane-control .tab-row .tab.selected {
1212
+ border-bottom: 0;
1213
+ z-index: 3;
1214
+ padding: 2px 6px 5px 7px;
1215
+ margin: 1px -3px -2px 0px;
1216
+ top: -2px;
1217
+ background: #f5f5f5;
1218
+ cursor: pointer;
1219
+ }
1220
+
1221
+ .tab-pane-control .tab-row .tab a {
1222
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
1223
+ font-size: 11px;
1224
+ font-weight: normal;
1225
+ color: black;
1226
+ text-decoration: none;
1227
+ outline: none;
1228
+ }
1229
+
1230
+ .tab-pane-control .tab-row .hover a {
1231
+ color: blue;
1232
+ }
1233
+
1234
+ .tab-pane-control .tab-page {
1235
+ clear: both;
1236
+ border: 1px solid;
1237
+ border-color: #898C95;
1238
+ background: #f5f5f5;
1239
+ z-index: 2;
1240
+ position: relative;
1241
+ top: -2px;
1242
+ color: black;
1243
+ font: Message-Box;
1244
+ padding: 5px;
1245
+ }
1246
+
1247
+ .tab-pane-control .tab-row {
1248
+ z-index: 1;
1249
+ white-space: nowrap;
1250
+ }
1251
+
1252
+ .tab-pane-control .tab-row {
1253
+ z-index: 1;
1254
+ white-space: nowrap;
1255
+ }
1256
+
1257
+ #FoldersAndFiles {
1258
+ table-layout: fixed;
1259
+ }
1260
+
1261
+ #FoldersAndFiles td {
1262
+ text-align: left;
1263
+ vertical-align: middle;
1264
+ }
1265
+
1266
+ .cursor {
1267
+ cursor: pointer;
1268
+ }
1269
+
1270
+ div.progress-container {
1271
+ background-color: green;
1272
+ height: 5px;
1273
+ width: 50px;
1274
+ font-size: 5px;
1275
+ margin: 2px 5px 2px 6px;
1276
+ }
1277
+
1278
+ div.progress-container div {
1279
+ background-color: red;
1280
+ height: 5px;
1281
+ font-size: 5px
1282
+ }
1283
+
1284
+ #uploadinfo {
1285
+ margin: 0;
1286
+ padding: 0 0 0 20px;
1287
+ }
1288
+
1289
+
1290
+ /*
1291
+ -----------------------------------------------------
1292
+ Author: Lewis E. Moten III
1293
+ Date: May, 16, 2004
1294
+ Homepage: http://www.lewismoten.com
1295
+ Email: lewis@moten.com
1296
+ -----------------------------------------------------
1297
+ */
1298
+
1299
+ /*
1300
+ filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1);
1301
+ */
1302
+
1303
+ #pnlRecent DIV {
1304
+ width: 10px;
1305
+ height: 10px;
1306
+ border: solid 1px black;
1307
+ background-color: ButtonFace;
1308
+ }
1309
+
1310
+ #pnlRecentBorder DIV {
1311
+ width: 12px;
1312
+ height: 12px;
1313
+ border-left: 1px solid ThreeDShadow;
1314
+ border-top: 1px solid ThreeDShadow;
1315
+ border-right: 1px solid ThreeDHighlight;
1316
+ border-bottom: 1px solid ThreeDHighlight;
1317
+ background-color: ButtonFace;
1318
+ }
1319
+
1320
+ #pnlRecentBorder {
1321
+ top: 222px;
1322
+ left: 316px;
1323
+ width: 160px;
1324
+ height: 70px;
1325
+ }
1326
+
1327
+ #pnlRecent {
1328
+ top: 223px;
1329
+ left: 317px;
1330
+ width: 160px;
1331
+ height: 70px;
1332
+ }
1333
+
1334
+ #lblRecent {
1335
+ top: 204px;
1336
+ left: 317px;
1337
+ width: 80px;
1338
+ height: 16px;
1339
+ }
1340
+
1341
+ #pnlRecent1 {
1342
+ top: 0px;
1343
+ left: 0px;
1344
+ }
1345
+
1346
+ #pnlRecent2 {
1347
+ top: 0px;
1348
+ left: 20px;
1349
+ }
1350
+
1351
+ #pnlRecent3 {
1352
+ top: 0px;
1353
+ left: 40px;
1354
+ }
1355
+
1356
+ #pnlRecent4 {
1357
+ top: 0px;
1358
+ left: 60px;
1359
+ }
1360
+
1361
+ #pnlRecent5 {
1362
+ top: 0px;
1363
+ left: 80px;
1364
+ }
1365
+
1366
+ #pnlRecent6 {
1367
+ top: 0px;
1368
+ left: 100px;
1369
+ }
1370
+
1371
+ #pnlRecent7 {
1372
+ top: 0px;
1373
+ left: 120px;
1374
+ }
1375
+
1376
+ #pnlRecent8 {
1377
+ top: 0px;
1378
+ left: 140px;
1379
+ }
1380
+
1381
+ #pnlRecent9 {
1382
+ top: 18px;
1383
+ left: 0px;
1384
+ }
1385
+
1386
+ #pnlRecent10 {
1387
+ top: 18px;
1388
+ left: 20px;
1389
+ }
1390
+
1391
+ #pnlRecent11 {
1392
+ top: 18px;
1393
+ left: 40px;
1394
+ }
1395
+
1396
+ #pnlRecent12 {
1397
+ top: 18px;
1398
+ left: 60px;
1399
+ }
1400
+
1401
+ #pnlRecent13 {
1402
+ top: 18px;
1403
+ left: 80px;
1404
+ }
1405
+
1406
+ #pnlRecent14 {
1407
+ top: 18px;
1408
+ left: 100px;
1409
+ }
1410
+
1411
+ #pnlRecent15 {
1412
+ top: 18px;
1413
+ left: 120px;
1414
+ }
1415
+
1416
+ #pnlRecent16 {
1417
+ top: 18px;
1418
+ left: 140px;
1419
+ }
1420
+
1421
+ #pnlRecent17 {
1422
+ top: 36px;
1423
+ left: 0px;
1424
+ }
1425
+
1426
+ #pnlRecent18 {
1427
+ top: 36px;
1428
+ left: 20px;
1429
+ }
1430
+
1431
+ #pnlRecent19 {
1432
+ top: 36px;
1433
+ left: 40px;
1434
+ }
1435
+
1436
+ #pnlRecent20 {
1437
+ top: 36px;
1438
+ left: 60px;
1439
+ }
1440
+
1441
+ #pnlRecent21 {
1442
+ top: 36px;
1443
+ left: 80px;
1444
+ }
1445
+
1446
+ #pnlRecent22 {
1447
+ top: 36px;
1448
+ left: 100px;
1449
+ }
1450
+
1451
+ #pnlRecent23 {
1452
+ top: 36px;
1453
+ left: 120px;
1454
+ }
1455
+
1456
+ #pnlRecent24 {
1457
+ top: 36px;
1458
+ left: 140px;
1459
+ }
1460
+
1461
+ #pnlRecent25 {
1462
+ top: 54px;
1463
+ left: 0px;
1464
+ }
1465
+
1466
+ #pnlRecent26 {
1467
+ top: 54px;
1468
+ left: 20px;
1469
+ }
1470
+
1471
+ #pnlRecent27 {
1472
+ top: 54px;
1473
+ left: 40px;
1474
+ }
1475
+
1476
+ #pnlRecent28 {
1477
+ top: 54px;
1478
+ left: 60px;
1479
+ }
1480
+
1481
+ #pnlRecent29 {
1482
+ top: 54px;
1483
+ left: 80px;
1484
+ }
1485
+
1486
+ #pnlRecent30 {
1487
+ top: 54px;
1488
+ left: 100px;
1489
+ }
1490
+
1491
+ #pnlRecent31 {
1492
+ top: 54px;
1493
+ left: 120px;
1494
+ }
1495
+
1496
+ #pnlRecent32 {
1497
+ top: 54px;
1498
+ left: 140px;
1499
+ }
1500
+
1501
+ #pnlRecentBorder1 {
1502
+ top: 0px;
1503
+ left: 0px;
1504
+ }
1505
+
1506
+ #pnlRecentBorder2 {
1507
+ top: 0px;
1508
+ left: 20px;
1509
+ }
1510
+
1511
+ #pnlRecentBorder3 {
1512
+ top: 0px;
1513
+ left: 40px;
1514
+ }
1515
+
1516
+ #pnlRecentBorder4 {
1517
+ top: 0px;
1518
+ left: 60px;
1519
+ }
1520
+
1521
+ #pnlRecentBorder5 {
1522
+ top: 0px;
1523
+ left: 80px;
1524
+ }
1525
+
1526
+ #pnlRecentBorder6 {
1527
+ top: 0px;
1528
+ left: 100px;
1529
+ }
1530
+
1531
+ #pnlRecentBorder7 {
1532
+ top: 0px;
1533
+ left: 120px;
1534
+ }
1535
+
1536
+ #pnlRecentBorder8 {
1537
+ top: 0px;
1538
+ left: 140px;
1539
+ }
1540
+
1541
+ #pnlRecentBorder9 {
1542
+ top: 18px;
1543
+ left: 0px;
1544
+ }
1545
+
1546
+ #pnlRecentBorder10 {
1547
+ top: 18px;
1548
+ left: 20px;
1549
+ }
1550
+
1551
+ #pnlRecentBorder11 {
1552
+ top: 18px;
1553
+ left: 40px;
1554
+ }
1555
+
1556
+ #pnlRecentBorder12 {
1557
+ top: 18px;
1558
+ left: 60px;
1559
+ }
1560
+
1561
+ #pnlRecentBorder13 {
1562
+ top: 18px;
1563
+ left: 80px;
1564
+ }
1565
+
1566
+ #pnlRecentBorder14 {
1567
+ top: 18px;
1568
+ left: 100px;
1569
+ }
1570
+
1571
+ #pnlRecentBorder15 {
1572
+ top: 18px;
1573
+ left: 120px;
1574
+ }
1575
+
1576
+ #pnlRecentBorder16 {
1577
+ top: 18px;
1578
+ left: 140px;
1579
+ }
1580
+
1581
+ #pnlRecentBorder17 {
1582
+ top: 36px;
1583
+ left: 0px;
1584
+ }
1585
+
1586
+ #pnlRecentBorder18 {
1587
+ top: 36px;
1588
+ left: 20px;
1589
+ }
1590
+
1591
+ #pnlRecentBorder19 {
1592
+ top: 36px;
1593
+ left: 40px;
1594
+ }
1595
+
1596
+ #pnlRecentBorder20 {
1597
+ top: 36px;
1598
+ left: 60px;
1599
+ }
1600
+
1601
+ #pnlRecentBorder21 {
1602
+ top: 36px;
1603
+ left: 80px;
1604
+ }
1605
+
1606
+ #pnlRecentBorder22 {
1607
+ top: 36px;
1608
+ left: 100px;
1609
+ }
1610
+
1611
+ #pnlRecentBorder23 {
1612
+ top: 36px;
1613
+ left: 120px;
1614
+ }
1615
+
1616
+ #pnlRecentBorder24 {
1617
+ top: 36px;
1618
+ left: 140px;
1619
+ }
1620
+
1621
+ #pnlRecentBorder25 {
1622
+ top: 54px;
1623
+ left: 0px;
1624
+ }
1625
+
1626
+ #pnlRecentBorder26 {
1627
+ top: 54px;
1628
+ left: 20px;
1629
+ }
1630
+
1631
+ #pnlRecentBorder27 {
1632
+ top: 54px;
1633
+ left: 40px;
1634
+ }
1635
+
1636
+ #pnlRecentBorder28 {
1637
+ top: 54px;
1638
+ left: 60px;
1639
+ }
1640
+
1641
+ #pnlRecentBorder29 {
1642
+ top: 54px;
1643
+ left: 80px;
1644
+ }
1645
+
1646
+ #pnlRecentBorder30 {
1647
+ top: 54px;
1648
+ left: 100px;
1649
+ }
1650
+
1651
+ #pnlRecentBorder31 {
1652
+ top: 54px;
1653
+ left: 120px;
1654
+ }
1655
+
1656
+ #pnlRecentBorder32 {
1657
+ top: 54px;
1658
+ left: 140px;
1659
+ }
1660
+
1661
+ #pnlVerticalRgb_Start {
1662
+ top: 32px;
1663
+ left: 282px;
1664
+ height: 256px;
1665
+ width: 19px;
1666
+ background-color: white;
1667
+ z-index: 3;
1668
+ }
1669
+
1670
+ #pnlVerticalRgb_End {
1671
+ top: 32px;
1672
+ left: 282px;
1673
+ height: 256px;
1674
+ width: 19px;
1675
+ background-color: cyan;
1676
+ z-index: 4;
1677
+ FILTER: Alpha(Opacity=0, FinishOpacity=100, Style=1, startX=0, finishX=0, startY=0, finishY=100);
1678
+ }
1679
+
1680
+ #pnlGradientRgb_Base {
1681
+ top: 32px;
1682
+ left: 12px;
1683
+ height: 256px;
1684
+ width: 256px;
1685
+ z-index: 3;
1686
+ background-image: url(images/cpns_gradients.png);
1687
+ }
1688
+
1689
+ #pnlGradientRgb_Overlay1 {
1690
+ top: 32px;
1691
+ left: 12px;
1692
+ height: 256px;
1693
+ width: 256px;
1694
+ z-index: 5;
1695
+ background-color: White;
1696
+ FILTER: Alpha(Opacity=0, FinishOpacity=100, Style=0, startX=0, finishX=0, startY=0, finishY=100);
1697
+ }
1698
+
1699
+ #pnlGradientRgb_Overlay2 {
1700
+ top: 32px;
1701
+ left: 12px;
1702
+ height: 256px;
1703
+ width: 256px;
1704
+ z-index: 6;
1705
+ background-color: Black;
1706
+ FILTER: Alpha(Opacity=0, FinishOpacity=100, Style=1, startX=0, finishX=0, startY=0, finishY=100);
1707
+ }
1708
+
1709
+ #pnlGradientRgb_Invert {
1710
+ top: 32px;
1711
+ left: 12px;
1712
+ height: 256px;
1713
+ width: 256px;
1714
+ z-index: 4;
1715
+ background-image: url(images/cpns_gradients.png);
1716
+ filter: flipH() flipV() invert() Alpha(Opacity=50);
1717
+ }
1718
+
1719
+ #pnlVerticalHsbBrightness_Black {
1720
+ top: 32px;
1721
+ left: 282px;
1722
+ height: 256px;
1723
+ width: 19px;
1724
+ background-color: Black;
1725
+ FILTER: Alpha(Opacity=100, FinishOpacity=0, Style=1, startY=100, finishY=0, startX=0, finishX=0);
1726
+ z-index: 4;
1727
+ }
1728
+
1729
+ #pnlVerticalHsbBrightness_Hue {
1730
+ top: 32px;
1731
+ left: 282px;
1732
+ height: 256px;
1733
+ width: 19px;
1734
+ background-color: 0006FF;
1735
+ z-index: 3;
1736
+ }
1737
+ /*
1738
+ =====================================================
1739
+ */
1740
+ #pnlVerticalHsbSaturation_White {
1741
+ top: 32px;
1742
+ left: 282px;
1743
+ height: 256px;
1744
+ width: 19px;
1745
+ background-color: White;
1746
+ FILTER: Alpha(Opacity=100, FinishOpacity=0, Style=1, startY=100, finishY=0, startX=0, finishX=0);
1747
+ z-index: 4;
1748
+ }
1749
+
1750
+ #pnlVerticalHsbSaturation_Hue {
1751
+ top: 32px;
1752
+ left: 282px;
1753
+ height: 256px;
1754
+ width: 19px;
1755
+ background-color: 0006FF;
1756
+ z-index: 3;
1757
+ }
1758
+ /*
1759
+ --------------------------------------------
1760
+ Buttons
1761
+ --------------------------------------------
1762
+ */
1763
+ #btnOK {
1764
+ top: 30px;
1765
+ left: 390px;
1766
+ border: 2px bevel;
1767
+ width: 81px;
1768
+ height: 20px;
1769
+ }
1770
+
1771
+ #btnCancel {
1772
+ top: 58px;
1773
+ left: 390px;
1774
+ color: ButtonText;
1775
+ border: 2px bevel;
1776
+ width: 81px;
1777
+ height: 20px;
1778
+ }
1779
+
1780
+ #btnAbout {
1781
+ top: 79px;
1782
+ left: 390px;
1783
+ color: ButtonText;
1784
+ border: 2px bevel;
1785
+ width: 81px;
1786
+ height: 20px;
1787
+ }
1788
+
1789
+ #btnWebSafeColor {
1790
+ border-style: none;
1791
+ border-width: 0px;
1792
+ background-image: url(images/cpns_WebSafe.gif);
1793
+ background-repeat: no-repeat;
1794
+ width: 11px;
1795
+ height: 12px;
1796
+ left: 347px;
1797
+ top: 11px;
1798
+
1799
+ display:none;
1800
+ }
1801
+ /*
1802
+ --------------------------------------------
1803
+ Basic Controls
1804
+ --------------------------------------------
1805
+ */
1806
+ #lblSelectColorMessage {
1807
+ top: 10px;
1808
+ left: 10px;
1809
+ display:none;
1810
+ }
1811
+
1812
+ #pnlOldColor {
1813
+ top: 65px;
1814
+ left: 317px;
1815
+ border-left: 1px solid black;
1816
+ border-bottom: 1px solid black;
1817
+ border-right: 1px solid black;
1818
+ background-color: 00013A;
1819
+ width: 60px;
1820
+ height: 34px;
1821
+ z-index: 2;
1822
+ }
1823
+
1824
+ #pnlOldColorBorder {
1825
+ top: 65px;
1826
+ left: 316px;
1827
+ border-left: 1px solid ThreeDShadow;
1828
+ border-bottom: 1px solid ThreeDHighlight;
1829
+ border-right: 1px solid ThreeDHighlight;
1830
+ width: 62px;
1831
+ height: 35px;
1832
+ z-index: 1;
1833
+ }
1834
+
1835
+ #pnlNewColor {
1836
+ background-color: #2729AD;
1837
+ top: 31px;
1838
+ left: 317px;
1839
+ border-left: 1px solid black;
1840
+ border-top: 1px solid black;
1841
+ border-right: 1px solid black;
1842
+ width: 60px;
1843
+ height: 34px;
1844
+ z-index: 2;
1845
+ }
1846
+
1847
+ #pnlNewColorBorder {
1848
+ top: 30px;
1849
+ left: 316px;
1850
+ border-left: 1px solid ThreeDShadow;
1851
+ border-top: 1px solid ThreeDShadow;
1852
+ border-right: 1px solid ThreeDHighlight;
1853
+ width: 62px;
1854
+ height: 35px;
1855
+ z-index: 1;
1856
+ }
1857
+
1858
+ #pnlWebSafeColor {
1859
+ top: 11px;
1860
+ left: 363px;
1861
+ width: 12px;
1862
+ height: 12px;
1863
+ border: solid 1px black;
1864
+ background-color: #333399;
1865
+ z-index: 2;
1866
+
1867
+ display:none;
1868
+ }
1869
+
1870
+ #pnlWebSafeColorBorder {
1871
+ top: 10px;
1872
+ left: 362px;
1873
+ width: 14px;
1874
+ height: 14px;
1875
+ border-left: 1px solid ThreeDShadow;
1876
+ border-top: 1px solid ThreeDShadow;
1877
+ border-right: 1px solid ThreeDHighlight;
1878
+ border-bottom: 1px solid ThreeDHighlight;
1879
+ z-index: 1;
1880
+ display: none;
1881
+ }
1882
+
1883
+ #pnlVerticalPosition {
1884
+ width: 35px;
1885
+ height: 11px;
1886
+ background-image: url(images/cpns_VerticalPosition.gif);
1887
+ left: 274px;
1888
+ top: 113px;
1889
+ }
1890
+
1891
+ #pnlGradientPosition {
1892
+ width: 256px;
1893
+ height: 256px;
1894
+ background-image: url(images/cpns_GradientPositionLight.gif);
1895
+ background-repeat: no-repeat;
1896
+ left: 12px;
1897
+ top: 32px;
1898
+ z-index: 98;
1899
+ }
1900
+ /*
1901
+ --------------------------------------------
1902
+ Gradient
1903
+ --------------------------------------------
1904
+ */
1905
+ #pnlGradient_Top {
1906
+ top: 32px;
1907
+ left: 12px;
1908
+ height: 256px;
1909
+ width: 256px;
1910
+ cursor: url(images/cpns_Color.cur);
1911
+ z-index: 99;
1912
+ }
1913
+
1914
+ .GradientNormal {
1915
+ }
1916
+
1917
+ .GradientFullScreen {
1918
+ top: 0px !important;
1919
+ left: 0px !important;
1920
+ height: 100% !important;
1921
+ width: 100% !important;
1922
+ z-index: 100;
1923
+ cursor: url(images/cpns_Color.cur) !important;
1924
+ }
1925
+
1926
+ #imgGradient {
1927
+ top: 32px;
1928
+ left: 12px;
1929
+ height: 256px;
1930
+ width: 256px;
1931
+ z-index: 4;
1932
+ position: absolute;
1933
+ }
1934
+
1935
+ #pnlGradient_Background2 {
1936
+ top: 31px;
1937
+ left: 11px;
1938
+ height: 256px;
1939
+ width: 256px;
1940
+ z-index: 2;
1941
+ border: solid 1px black;
1942
+ }
1943
+
1944
+ #pnlGradient_Background1 {
1945
+ top: 30px;
1946
+ left: 10px;
1947
+ height: 258px;
1948
+ width: 258px;
1949
+ z-index: 1;
1950
+ border: solid 1px;
1951
+ border-top-color: ThreeDShadow;
1952
+ border-left-color: ThreeDShadow;
1953
+ border-bottom-color: ThreeDHighlight;
1954
+ border-right-color: ThreeDHighlight;
1955
+ }
1956
+ /*
1957
+ --------------------------------------------
1958
+ Vertical Bar
1959
+ --------------------------------------------
1960
+ */
1961
+ #pnlVertical_Top {
1962
+ left: 272px;
1963
+ width: 39px;
1964
+ z-index: 98;
1965
+ top: 0px;
1966
+ height: 310px;
1967
+ }
1968
+ /*
1969
+ top:32px;
1970
+ height: 256px;
1971
+ */
1972
+
1973
+ #pnlVertical_Background2 {
1974
+ top: 31px;
1975
+ left: 281px;
1976
+ height: 256px;
1977
+ width: 19px;
1978
+ z-index: 2;
1979
+ border: solid 1px black;
1980
+ }
1981
+
1982
+ #pnlVertical_Background1 {
1983
+ top: 30px;
1984
+ left: 280px;
1985
+ height: 256px;
1986
+ width: 21px;
1987
+ z-index: 1;
1988
+ border: solid 1px;
1989
+ border-top-color: ThreeDShadow;
1990
+ border-left-color: ThreeDShadow;
1991
+ border-bottom-color: ThreeDHighlight;
1992
+ border-right-color: ThreeDHighlight;
1993
+ }
1994
+ /*
1995
+ --------------------------------------------------------
1996
+ Color Mode: Hue / Saturation / Brightness (HSB)
1997
+ --------------------------------------------------------
1998
+ */
1999
+ #pnlVerticalHsbHue_Background {
2000
+ top: 32px;
2001
+ left: 282px;
2002
+ height: 256px;
2003
+ width: 19px;
2004
+ z-index: 3;
2005
+ background-image: url(images/cpns_hue2.png);
2006
+ }
2007
+
2008
+ #pnlGradientHsbHue_Black {
2009
+ top: 32px;
2010
+ left: 12px;
2011
+ height: 256px;
2012
+ width: 256px;
2013
+ background-color: Black;
2014
+ FILTER: Alpha(Opacity=100, FinishOpacity=0, Style=1, startY=100, finishY=0, startX=0, finishX=0);
2015
+ z-index: 5;
2016
+ }
2017
+
2018
+ #pnlGradientHsbHue_White {
2019
+ top: 32px;
2020
+ left: 12px;
2021
+ height: 256px;
2022
+ width: 256px;
2023
+ background-color: White;
2024
+ FILTER: Alpha(Opacity=100, FinishOpacity=0, Style=1, startX=0, finishX=100, startY=0, finishY=0);
2025
+ z-index: 4;
2026
+ }
2027
+
2028
+ #pnlGradientHsbHue_Hue {
2029
+ top: 32px;
2030
+ left: 12px;
2031
+ height: 256px;
2032
+ width: 256px;
2033
+ background-color: 0006FF;
2034
+ z-index: 3;
2035
+ }
2036
+
2037
+ #pnlHSB {
2038
+ top: 115px;
2039
+ left: 317px;
2040
+ width: 80px;
2041
+ height: 75px;
2042
+ }
2043
+
2044
+ #pnlHSB_Hue {
2045
+ top: 0px;
2046
+ width: 80px;
2047
+ height: 22px;
2048
+ }
2049
+
2050
+ #pnlHSB_Saturation {
2051
+ top: 25px;
2052
+ width: 80px;
2053
+ height: 22px;
2054
+ }
2055
+
2056
+ #pnlHSB_Brightness {
2057
+ top: 50px;
2058
+ width: 80px;
2059
+ height: 22px;
2060
+ }
2061
+
2062
+ #rdoHSB_Hue {
2063
+ background-color: ButtonFace;
2064
+ color: ButtonText;
2065
+ cursor: default;
2066
+ top: 2px;
2067
+ left: -3px;
2068
+ width: 12px;
2069
+ height: 12px;
2070
+ }
2071
+
2072
+ #lblHSB_Hue {
2073
+ top: 0px;
2074
+ left: 0px;
2075
+ padding-top: 4px;
2076
+ padding-left: 16px;
2077
+ height: 22px;
2078
+ width: 37px;
2079
+ }
2080
+
2081
+ #txtHSB_Hue {
2082
+ top: 0px;
2083
+ left: 37px;
2084
+ border-style: inset;
2085
+ border-width: 2px;
2086
+ width: 31px;
2087
+ height: 22px;
2088
+ }
2089
+
2090
+ #lblUnitHSB_Hue {
2091
+ top: 4px;
2092
+ left: 70px;
2093
+ font-size: 10pt;
2094
+ }
2095
+
2096
+ #rdoHSB_Saturation {
2097
+ background-color: ButtonFace;
2098
+ color: ButtonText;
2099
+ cursor: default;
2100
+ top: 2px;
2101
+ left: -3px;
2102
+ width: 12px;
2103
+ height: 12px;
2104
+ }
2105
+
2106
+ #lblHSB_Saturation {
2107
+ top: 0px;
2108
+ left: 0px;
2109
+ padding-top: 4px;
2110
+ padding-left: 16px;
2111
+ height: 22px;
2112
+ width: 37px;
2113
+ }
2114
+
2115
+ #txtHSB_Saturation {
2116
+ top: 0px;
2117
+ left: 37px;
2118
+ border-style: inset;
2119
+ border-width: 2px;
2120
+ width: 31px;
2121
+ height: 22px;
2122
+ }
2123
+
2124
+ #lblUnitHSB_Saturation {
2125
+ top: 4px;
2126
+ left: 70px;
2127
+ }
2128
+
2129
+ #rdoHSB_Brightness {
2130
+ background-color: ButtonFace;
2131
+ color: ButtonText;
2132
+ cursor: default;
2133
+ top: 2px;
2134
+ left: -3px;
2135
+ width: 12px;
2136
+ height: 12px;
2137
+ }
2138
+
2139
+ #lblHSB_Brightness {
2140
+ top: 0px;
2141
+ left: 0px;
2142
+ padding-top: 4px;
2143
+ padding-left: 16px;
2144
+ height: 22px;
2145
+ width: 37px;
2146
+ }
2147
+
2148
+ #txtHSB_Brightness {
2149
+ top: 0px;
2150
+ left: 37px;
2151
+ border-style: inset;
2152
+ border-width: 2px;
2153
+ width: 31px;
2154
+ height: 22px;
2155
+ }
2156
+
2157
+ #lblUnitHSB_Brightness {
2158
+ top: 4px;
2159
+ left: 70px;
2160
+ }
2161
+ /*
2162
+ --------------------------------------------------------
2163
+ Color Mode: Red / Green / Blue (RGB a.k.a. additive)
2164
+ --------------------------------------------------------
2165
+ */
2166
+ #pnlRGB {
2167
+ top: 115px;
2168
+ left: 400px;
2169
+ width: 75px;
2170
+ height: 75px;
2171
+ }
2172
+
2173
+ #pnlRGB_Red {
2174
+ top: 0px;
2175
+ left: 0px;
2176
+ width: 75px;
2177
+ height: 22px;
2178
+ }
2179
+
2180
+ #pnlRGB_Green {
2181
+ top: 25px;
2182
+ left: 0px;
2183
+ width: 75px;
2184
+ height: 22px;
2185
+ }
2186
+
2187
+ #pnlRGB_Blue {
2188
+ top: 50px;
2189
+ left: 0px;
2190
+ width: 75px;
2191
+ height: 22px;
2192
+ }
2193
+
2194
+ #lblRGB_Red {
2195
+ top: 0px;
2196
+ left: 0px;
2197
+ padding-top: 4px;
2198
+ padding-left: 16px;
2199
+ height: 22px;
2200
+ width: 37px;
2201
+ }
2202
+
2203
+ #txtRGB_Red {
2204
+ top: 0px;
2205
+ left: 37px;
2206
+ border-style: inset;
2207
+ border-width: 2px;
2208
+ width: 31px;
2209
+ height: 22px;
2210
+ }
2211
+
2212
+ #lblRGB_Green {
2213
+ top: 0px;
2214
+ left: 0px;
2215
+ padding-top: 4px;
2216
+ padding-left: 16px;
2217
+ height: 22px;
2218
+ width: 37px;
2219
+ }
2220
+
2221
+ #txtRGB_Green {
2222
+ top: 0px;
2223
+ left: 37px;
2224
+ border-style: inset;
2225
+ border-width: 2px;
2226
+ width: 31px;
2227
+ height: 22px;
2228
+ }
2229
+
2230
+ #lblRGB_Blue {
2231
+ top: 0px;
2232
+ left: 0px;
2233
+ padding-top: 4px;
2234
+ padding-left: 16px;
2235
+ height: 22px;
2236
+ width: 37px;
2237
+ }
2238
+
2239
+ #txtRGB_Blue {
2240
+ top: 0px;
2241
+ left: 37px;
2242
+ border-style: inset;
2243
+ border-width: 2px;
2244
+ width: 31px;
2245
+ height: 22px;
2246
+ }
2247
+ /*
2248
+ --------------------------------------------------------
2249
+ Color Mode: Hex (Hex values of RGB a.k.a. HTML Color value)
2250
+ --------------------------------------------------------
2251
+ */
2252
+ #lblHex {
2253
+ top: 195px;
2254
+ left: 400px;
2255
+ }
2256
+
2257
+ #txtHex {
2258
+ top: 195px;
2259
+ left: 412px;
2260
+ border-style: inset;
2261
+ border-width: 2px;
2262
+ width: 56px;
2263
+ height: 22px;
2264
+ }
2265
+
2266
+
2267
+
2268
+
2269
+ /*
2270
+ --------------------------------------------
2271
+ Elements
2272
+ --------------------------------------------
2273
+ */
2274
+
2275
+ #colorpickerpanel INPUT {
2276
+ position: absolute;
2277
+ font-family: "Photoshop Large", Arial;
2278
+ font-size: 8pt;
2279
+ color: WindowText;
2280
+ background-color: Window;
2281
+ cursor: text;
2282
+ text-align: right;
2283
+ }
2284
+
2285
+ #colorpickerpanel .Button {
2286
+ position: absolute;
2287
+ font-family: "Photoshop Large", Arial;
2288
+ font-size: 8pt;
2289
+ color: ButtonText;
2290
+ cursor: default;
2291
+ background-color: ButtonFace;
2292
+ text-align: center;
2293
+ }
2294
+
2295
+ #colorpickerpanel DIV {
2296
+ position: absolute;
2297
+ font-family: "Photoshop Large", Arial;
2298
+ font-size: 8pt;
2299
+ color: ButtonText;
2300
+ cursor: default;
2301
+ overflow: hidden;
2302
+ }
2303
+
2304
+ #colorpickerpanel IMG {
2305
+ position: absolute;
2306
+ cursor: default;
2307
+ overflow: hidden;
2308
+ }
2309
+
2310
+ </style>
2311
+
2312
+
2313
+ <style type="text/css">
2314
+ .colorcell {
2315
+ width: 16px;
2316
+ height: 17px;
2317
+ cursor: pointer;
2318
+ }
2319
+
2320
+ .colordiv, .customdiv {
2321
+ border: solid 1px #808080;
2322
+ width: 16px;
2323
+ height: 17px;
2324
+ font-size: 1px;
2325
+ }
2326
+
2327
+ #ajaxdiv {
2328
+ margin: 0;
2329
+ text-align: center;
2330
+ }
2331
+ </style>
2332
+ <title>CustomColor</title>
2333
+ </head>
2334
+ <body>
2335
+ <div id="ajaxdiv">
2336
+
2337
+ <div id="colorpickerpanel" style="position: relative; text-align: left; height: 350px">
2338
+ <!--
2339
+ -----------------------------------------------------
2340
+ Author: Lewis E. Moten III
2341
+ Date: May, 16, 2004
2342
+ Homepage: http://www.lewismoten.com
2343
+ Email: lewis@moten.com
2344
+ -----------------------------------------------------
2345
+ -->
2346
+ <div id="pnlGradient_Top">
2347
+ </div>
2348
+ <div id="pnlGradient_Background1">
2349
+ </div>
2350
+ <div id="pnlGradient_Background2">
2351
+ </div>
2352
+ <img id="imgGradient">
2353
+ <div id="pnlGradientRgb_Overlay1">
2354
+ </div>
2355
+ <div id="pnlGradientRgb_Overlay2">
2356
+ </div>
2357
+ <img id="pnlVerticalHsbSaturation_Hue">
2358
+ <div id="pnlVertical_Background2">
2359
+ </div>
2360
+ <div id="pnlVertical_Background1">
2361
+ </div>
2362
+ <div id="pnlVertical_Top">
2363
+ </div>
2364
+ <!-- HSB: Hue -->
2365
+ <div id="pnlGradientHsbHue_Hue">
2366
+ </div>
2367
+ <div id="pnlVerticalHsbHue_Background">
2368
+ </div>
2369
+ <div id="pnlOldColor">
2370
+ </div>
2371
+ <div id="pnlOldColorBorder">
2372
+ </div>
2373
+ <div id="pnlNewColor">
2374
+ </div>
2375
+ <div id="pnlNewColorBorder">
2376
+ </div>
2377
+ <div id="pnlWebSafeColor" title="Click to select web safe color">
2378
+ </div>
2379
+ <div id="pnlWebSafeColorBorder">
2380
+ </div>
2381
+ <div id="pnlVerticalPosition">
2382
+ </div>
2383
+ <div id="pnlGradientPosition">
2384
+ </div>
2385
+ <div id="lblSelectColorMessage">
2386
+ SelectColor:
2387
+ </div>
2388
+ <div id="lblRecent">
2389
+ Recent:
2390
+ </div>
2391
+ <div id="pnlRecentBorder">
2392
+ <div id="pnlRecentBorder1">
2393
+ </div>
2394
+ <div id="pnlRecentBorder2">
2395
+ </div>
2396
+ <div id="pnlRecentBorder3">
2397
+ </div>
2398
+ <div id="pnlRecentBorder4">
2399
+ </div>
2400
+ <div id="pnlRecentBorder5">
2401
+ </div>
2402
+ <div id="pnlRecentBorder6">
2403
+ </div>
2404
+ <div id="pnlRecentBorder7">
2405
+ </div>
2406
+ <div id="pnlRecentBorder8">
2407
+ </div>
2408
+ <div id="pnlRecentBorder9">
2409
+ </div>
2410
+ <div id="pnlRecentBorder10">
2411
+ </div>
2412
+ <div id="pnlRecentBorder11">
2413
+ </div>
2414
+ <div id="pnlRecentBorder12">
2415
+ </div>
2416
+ <div id="pnlRecentBorder13">
2417
+ </div>
2418
+ <div id="pnlRecentBorder14">
2419
+ </div>
2420
+ <div id="pnlRecentBorder15">
2421
+ </div>
2422
+ <div id="pnlRecentBorder16">
2423
+ </div>
2424
+ <div id="pnlRecentBorder17">
2425
+ </div>
2426
+ <div id="pnlRecentBorder18">
2427
+ </div>
2428
+ <div id="pnlRecentBorder19">
2429
+ </div>
2430
+ <div id="pnlRecentBorder20">
2431
+ </div>
2432
+ <div id="pnlRecentBorder21">
2433
+ </div>
2434
+ <div id="pnlRecentBorder22">
2435
+ </div>
2436
+ <div id="pnlRecentBorder23">
2437
+ </div>
2438
+ <div id="pnlRecentBorder24">
2439
+ </div>
2440
+ <div id="pnlRecentBorder25">
2441
+ </div>
2442
+ <div id="pnlRecentBorder26">
2443
+ </div>
2444
+ <div id="pnlRecentBorder27">
2445
+ </div>
2446
+ <div id="pnlRecentBorder28">
2447
+ </div>
2448
+ <div id="pnlRecentBorder29">
2449
+ </div>
2450
+ <div id="pnlRecentBorder30">
2451
+ </div>
2452
+ <div id="pnlRecentBorder31">
2453
+ </div>
2454
+ <div id="pnlRecentBorder32">
2455
+ </div>
2456
+ </div>
2457
+ <div id="pnlRecent">
2458
+ <div id="pnlRecent1">
2459
+ </div>
2460
+ <div id="pnlRecent2">
2461
+ </div>
2462
+ <div id="pnlRecent3">
2463
+ </div>
2464
+ <div id="pnlRecent4">
2465
+ </div>
2466
+ <div id="pnlRecent5">
2467
+ </div>
2468
+ <div id="pnlRecent6">
2469
+ </div>
2470
+ <div id="pnlRecent7">
2471
+ </div>
2472
+ <div id="pnlRecent8">
2473
+ </div>
2474
+ <div id="pnlRecent9">
2475
+ </div>
2476
+ <div id="pnlRecent10">
2477
+ </div>
2478
+ <div id="pnlRecent11">
2479
+ </div>
2480
+ <div id="pnlRecent12">
2481
+ </div>
2482
+ <div id="pnlRecent13">
2483
+ </div>
2484
+ <div id="pnlRecent14">
2485
+ </div>
2486
+ <div id="pnlRecent15">
2487
+ </div>
2488
+ <div id="pnlRecent16">
2489
+ </div>
2490
+ <div id="pnlRecent17">
2491
+ </div>
2492
+ <div id="pnlRecent18">
2493
+ </div>
2494
+ <div id="pnlRecent19">
2495
+ </div>
2496
+ <div id="pnlRecent20">
2497
+ </div>
2498
+ <div id="pnlRecent21">
2499
+ </div>
2500
+ <div id="pnlRecent22">
2501
+ </div>
2502
+ <div id="pnlRecent23">
2503
+ </div>
2504
+ <div id="pnlRecent24">
2505
+ </div>
2506
+ <div id="pnlRecent25">
2507
+ </div>
2508
+ <div id="pnlRecent26">
2509
+ </div>
2510
+ <div id="pnlRecent27">
2511
+ </div>
2512
+ <div id="pnlRecent28">
2513
+ </div>
2514
+ <div id="pnlRecent29">
2515
+ </div>
2516
+ <div id="pnlRecent30">
2517
+ </div>
2518
+ <div id="pnlRecent31">
2519
+ </div>
2520
+ <div id="pnlRecent32">
2521
+ </div>
2522
+ </div>
2523
+ <div id="lblHex">
2524
+ #
2525
+ </div>
2526
+ <form id="frmColorPicker">
2527
+ <div id="pnlHSB">
2528
+ <div id="pnlHSB_Hue" title="Hue">
2529
+ <input type="radio" id="rdoHSB_Hue" name="ColorType" checked>
2530
+ <div id="lblHSB_Hue">
2531
+ H:
2532
+ </div>
2533
+ <input type="text" id="txtHSB_Hue">
2534
+ <div id="lblUnitHSB_Hue">
2535
+ </div>
2536
+ </div>
2537
+ <div id="pnlHSB_Saturation" title="Saturation">
2538
+ <input type="radio" id="rdoHSB_Saturation" name="ColorType">
2539
+ <div id="lblHSB_Saturation">
2540
+ S:
2541
+ </div>
2542
+ <input type="text" id="txtHSB_Saturation">
2543
+ <div id="lblUnitHSB_Saturation">
2544
+ %
2545
+ </div>
2546
+ </div>
2547
+ <div id="pnlHSB_Brightness" title="Brightness">
2548
+ <input type="radio" id="rdoHSB_Brightness" name="ColorType">
2549
+ <div id="lblHSB_Brightness">
2550
+ B:
2551
+ </div>
2552
+ <input type="text" id="txtHSB_Brightness">
2553
+ <div id="lblUnitHSB_Brightness">
2554
+ %
2555
+ </div>
2556
+ </div>
2557
+ </div>
2558
+ <div id="pnlRGB">
2559
+ <div id="pnlRGB_Red" title="Red">
2560
+ <div id="lblRGB_Red">
2561
+ R:
2562
+ </div>
2563
+ <input type="text" id="txtRGB_Red">
2564
+ </div>
2565
+ <div id="pnlRGB_Green" title="Green">
2566
+ <div id="lblRGB_Green">
2567
+ G:
2568
+ </div>
2569
+ <input type="text" id="txtRGB_Green">
2570
+ </div>
2571
+ <div id="pnlRGB_Blue" title="Blue">
2572
+ <div id="lblRGB_Blue">
2573
+ B:
2574
+ </div>
2575
+ <input type="text" id="txtRGB_Blue">
2576
+ </div>
2577
+ </div>
2578
+ <input type="text" id="txtHex" maxlength="6">
2579
+ <input id="btnWebSafeColor" type="button" title="Warning: not a web safe color" class="Button">
2580
+ <input id="btnOK" type="button" value="OK" class="Button">
2581
+ <input id="btnCancel" type="button" value="Cancel" class="Button">
2582
+ <input id="btnAbout" type="button" value="About" class="Button" style="display: none">
2583
+ </form>
2584
+ </div>
2585
+
2586
+ </div>
2587
+ </body>
2588
+
2589
+ <script>
2590
+
2591
+ new function () {
2592
+ var editor = parent.rtecolorpickereditor;
2593
+ var ns = document.getElementsByTagName("*");
2594
+ for (var i = 0; i < ns.length; i++) {
2595
+ var n = ns[i];
2596
+ if (n.getAttribute('langtext') != "1") continue;
2597
+ var t = n.innerText || n.textContent || "";
2598
+ if (t) {
2599
+ t = editor.getLangText(t);
2600
+ n.innerText = t;
2601
+ n.textContent = t;
2602
+ }
2603
+ var t = n.value || "";
2604
+ if (t) {
2605
+ t = editor.getLangText(t);
2606
+ n.value = t;
2607
+ }
2608
+ }
2609
+ }
2610
+
2611
+ </script>
2612
+
2613
+ </html>