--- trunk/index.php 2004/10/02 23:25:50 2
+++ trunk/index.php 2004/10/02 23:39:42 3
@@ -194,6 +194,7 @@
}
+
@@ -201,20 +202,6 @@
-
-
ColorMatch Remix
-
This colorpicker is based heavily upon the code from ColorMatch 5k. I've made it more compatible - it now works in Mozilla, and should also work in Opera, since I'm using a much better slider control. I've also added 3 more colors, bringing the total auto-generated colors to 9, and the ability to export your colors to a Photoshop color table.
-
You can also download the full source code here.
-
What's New:
-
- - Jun. 12, 2004: Fixed a text export bug (finally!), added CMYK output, and the ability to bookmark colors. Also added colors to the dropdown theme list. Zipfile updated.
- - Feb. 01, 2004: Added Sample Page rendering, cleaned up code, added config file.
- - Jan. 29, 2004: Woo! Jeffrey Zeldman has linked to this! Sweet!
- - Jan. 23, 2004: Hans Le Roy has put up a mirror of ColorMatch Remix, with 3 translations - Spanish, French, and Dutch.
- - Jan. 19, 2004: I've zipped up all the code, along with a dump of the database, for those of you who'd like to run it on your own server. All I request is that you link back to my main page.
- - Dec. 06, 2003: This site featured in Lockergnome's Windows Fanatics newsletter! (Thanks for the link, Chris!)
-
-
+
+
site news
+
+
ColorMatch Remix
+
This colorpicker is based heavily upon the code from ColorMatch 5k. I've made it more compatible - it now works in Mozilla, and should also work in Opera, since I'm using a much better slider control. I've also added 3 more colors, bringing the total auto-generated colors to 9, and the ability to export your colors to a Photoshop color table.
+
You can also download the full source code here.
+
What's New:
+
+ - Oct. 03, 2004: First modification by Dobrica Pavlinusic: lighter and darker selections, speedup using getElementById cache
+ - Jun. 12, 2004: Fixed a text export bug (finally!), added CMYK output, and the ability to bookmark colors. Also added colors to the dropdown theme list. Zipfile updated.
+ - Feb. 01, 2004: Added Sample Page rendering, cleaned up code, added config file.
+ - Jan. 29, 2004: Woo! Jeffrey Zeldman has linked to this! Sweet!
+ - Jan. 23, 2004: Hans Le Roy has put up a mirror of ColorMatch Remix, with 3 translations - Spanish, French, and Dutch.
+ - Jan. 19, 2004: I've zipped up all the code, along with a dump of the database, for those of you who'd like to run it on your own server. All I request is that you link back to my main page.
+ - Dec. 06, 2003: This site featured in Lockergnome's Windows Fanatics newsletter! (Thanks for the link, Chris!)
+
+
+
@@ -340,30 +345,30 @@
// init code
-var r = new Slider(document.getElementById("red-slider"), document.getElementById("red-slider-input"));
+var r = new Slider(element_id("red-slider"), document.getElementById("red-slider-input"));
r.setMaximum(255);
-var g = new Slider(document.getElementById("green-slider"), document.getElementById("green-slider-input"));
+var g = new Slider(element_id("green-slider"), document.getElementById("green-slider-input"));
g.setMaximum(255);
-var b = new Slider(document.getElementById("blue-slider"), document.getElementById("blue-slider-input"));
+var b = new Slider(element_id("blue-slider"), document.getElementById("blue-slider-input"));
b.setMaximum(255);
-var ri = document.getElementById("red-input");
+var ri = element_id("red-input");
ri.onchange = function () {
r.setValue(parseInt(this.value));
};
-var gi = document.getElementById("green-input");
+var gi = element_id("green-input");
gi.onchange = function () {
g.setValue(parseInt(this.value));
};
-var bi = document.getElementById("blue-input");
+var bi = element_id("blue-input");
bi.onchange = function () {
b.setValue(parseInt(this.value));
};
r.onchange = g.onchange = b.onchange = function () {
- var cr = document.getElementById("color-result");
+ var cr = element_id("color-result");
cr.style.backgroundColor = "rgb(" + r.getValue() + "," + g.getValue() + "," + b.getValue() + ")";
rg.r = ri.value = r.getValue();
rg.g = gi.value = g.getValue();