Colour swatch now updates
authorrsesek <rsesek@ad1dcce9-c9fe-0310-b82b-83ea1733dbb0>
Sun, 21 Aug 2005 05:05:07 +0000 (05:05 +0000)
committerrsesek <rsesek@ad1dcce9-c9fe-0310-b82b-83ea1733dbb0>
Sun, 21 Aug 2005 05:05:07 +0000 (05:05 +0000)
git-svn-id: svn://depot/macosx/trunk@11 ad1dcce9-c9fe-0310-b82b-83ea1733dbb0

RGB_Converter/RGB_Converter.wdgt/Widget.css
RGB_Converter/RGB_Converter.wdgt/Widget.js

index b3307f82c746da1c6602eeb3601caf8ea68bdd3e..63b07544070552bb7a04b9083fb89cac80fca98d 100644 (file)
@@ -46,7 +46,11 @@ body
 
 #swatch
 {
-
+       position: absolute;
+       top: 21px;
+       left: 239px;
+       height: 42px;
+       width: 42px;
 }
 
 /* ################################################################### */
index 526dc8583d033274d03507837039a3974d9098a6..573ea61c83de26517f6d5b97368816717a088799 100644 (file)
@@ -64,7 +64,7 @@ function update_hex()
 // update the colour swatch
 function update_swatch()
 {
-       
+       document.getElementById("swatch").style.backgroundColor = "#" + fields['hex'];
 }
 
 // ###################################################################