Start off with a white swatch so users know which is RGB
authorrsesek <rsesek@ad1dcce9-c9fe-0310-b82b-83ea1733dbb0>
Sat, 15 Jul 2006 02:27:37 +0000 (02:27 +0000)
committerrsesek <rsesek@ad1dcce9-c9fe-0310-b82b-83ea1733dbb0>
Sat, 15 Jul 2006 02:27:37 +0000 (02:27 +0000)
git-svn-id: svn://depot/macosx/RGBConverter/trunk@243 ad1dcce9-c9fe-0310-b82b-83ea1733dbb0

RGB Converter.wdgt/Widget.css
RGB Converter.wdgt/Widget.html

index 1986e196a8f056bc5bba506ef771db0149442a52..44181b39428fd4d82687369cf012aa0e4be1c604 100644 (file)
@@ -85,7 +85,7 @@ a
        height: 35px;
        width: 65px;
        
-       background-color: rgb(0, 0, 0);
+       background-color: rgb(255, 255, 255);
 }
 
 #swatch-red
@@ -98,7 +98,7 @@ a
        height: 35px;
        width: 100px;
        
-       background-color: rgb(0, 0, 0);
+       background-color: rgb(255, 0, 0);
 }
 
 #swatch-green
@@ -111,7 +111,7 @@ a
        height: 35px;
        width: 100px;
        
-       background-color: rgb(0, 0, 0);
+       background-color: rgb(0, 255, 0);
 }
 
 #swatch-blue
@@ -124,7 +124,7 @@ a
        height: 35px;
        width: 100px;
        
-       background-color: rgb(0, 0, 0);
+       background-color: rgb(0, 0, 255);
 }
 
 /* ################################################################### */
index d277b822c74925c7c7c1e09a37bf28415fd37982..32e79785fcbcc1a437908ede7c87a2f847d87230 100644 (file)
     <div id="front" onmousemove="mousemove(event);" onmouseout="mouseexit(event);">
     
                <div style="z-index: 500; position: absolute"><img src="Front.png" alt="" style="" /></div>
-               <div id="hexinput">HEX Code <input type="text" name="hexinput" id="hexinputf" size="6" maxlength="6" onblur="hexwatcher()" value="000000" /></div>
+               <div id="hexinput">HEX Code <input type="text" name="hexinput" id="hexinputf" size="6" maxlength="6" onblur="hexwatcher()" value="FFFFFF" /></div>
                
                <div id="swatch"></div>
                <div id="swatch-red"></div>
                <div id="swatch-green"></div>
                <div id="swatch-blue"></div>
                
-               <div id="redinput"><input type="text" name="redinput" id="redinputf" style="color: red" size="3" maxlength="3" onblur="rgbwatcher('red')" value="0" /></div>
-               <div id="greeninput"><input type="text" name="greeninput" id="greeninputf" style="color: green" size="3" maxlength="3" onblur="rgbwatcher('green')" value="0" /></div>
-               <div id="blueinput"><input type="text" name="blueinput" id="blueinputf" style="color: blue" size="3" maxlength="3" onblur="rgbwatcher('blue')" value="0" /></div>
+               <div id="redinput"><input type="text" name="redinput" id="redinputf" style="color: red" size="3" maxlength="3" onblur="rgbwatcher('red')" value="255" /></div>
+               <div id="greeninput"><input type="text" name="greeninput" id="greeninputf" style="color: green" size="3" maxlength="3" onblur="rgbwatcher('green')" value="255" /></div>
+               <div id="blueinput"><input type="text" name="blueinput" id="blueinputf" style="color: blue" size="3" maxlength="3" onblur="rgbwatcher('blue')" value="255" /></div>
                
                <div class="flip" id="fliprollie"></div>
                <div class="flip" id="flip" onclick="show_back(event);" onmouseover="enterflip(event);" onmouseout="exitflip(event)";></div>