From 2f57a40e3eeaa757391207dee4de93a193ae73d2 Mon Sep 17 00:00:00 2001 From: rsesek Date: Sun, 21 Aug 2005 05:05:07 +0000 Subject: [PATCH] Colour swatch now updates git-svn-id: svn://depot/macosx/trunk@11 ad1dcce9-c9fe-0310-b82b-83ea1733dbb0 --- RGB_Converter/RGB_Converter.wdgt/Widget.css | 6 +++++- RGB_Converter/RGB_Converter.wdgt/Widget.js | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/RGB_Converter/RGB_Converter.wdgt/Widget.css b/RGB_Converter/RGB_Converter.wdgt/Widget.css index b3307f8..63b0754 100644 --- a/RGB_Converter/RGB_Converter.wdgt/Widget.css +++ b/RGB_Converter/RGB_Converter.wdgt/Widget.css @@ -46,7 +46,11 @@ body #swatch { - + position: absolute; + top: 21px; + left: 239px; + height: 42px; + width: 42px; } /* ################################################################### */ diff --git a/RGB_Converter/RGB_Converter.wdgt/Widget.js b/RGB_Converter/RGB_Converter.wdgt/Widget.js index 526dc85..573ea61 100644 --- a/RGB_Converter/RGB_Converter.wdgt/Widget.js +++ b/RGB_Converter/RGB_Converter.wdgt/Widget.js @@ -64,7 +64,7 @@ function update_hex() // update the colour swatch function update_swatch() { - + document.getElementById("swatch").style.backgroundColor = "#" + fields['hex']; } // ################################################################### -- 2.43.5