From 467ba241f06e31448ff72b989284c689fafc4410 Mon Sep 17 00:00:00 2001 From: rsesek Date: Sat, 15 Jul 2006 02:26:17 +0000 Subject: [PATCH] In update_swatch(), throw in some code that also converts the HEX to be all upper case git-svn-id: svn://depot/macosx/RGBConverter/trunk@242 ad1dcce9-c9fe-0310-b82b-83ea1733dbb0 --- RGB Converter.wdgt/Widget.js | 1 + 1 file changed, 1 insertion(+) diff --git a/RGB Converter.wdgt/Widget.js b/RGB Converter.wdgt/Widget.js index 6a29338..091c6c9 100644 --- a/RGB Converter.wdgt/Widget.js +++ b/RGB Converter.wdgt/Widget.js @@ -138,6 +138,7 @@ function update_rgb() // update the colour swatch function update_swatch() { + document.getElementById("hexinputf").value = document.getElementById("hexinputf").value.toUpperCase(); document.getElementById("swatch").style.backgroundColor = "rgb(" + fields['red'] + ", " + fields['green'] + ", " + fields['blue'] + ")"; document.getElementById("swatch-red").style.backgroundColor = "rgb(" + fields['red'] + ", 0, 0)"; document.getElementById("swatch-green").style.backgroundColor = "rgb(0, " + fields['green'] + ", 0)"; -- 2.43.5