Back side of widget is done
authorrsesek <rsesek@ad1dcce9-c9fe-0310-b82b-83ea1733dbb0>
Sun, 21 Aug 2005 06:07:35 +0000 (06:07 +0000)
committerrsesek <rsesek@ad1dcce9-c9fe-0310-b82b-83ea1733dbb0>
Sun, 21 Aug 2005 06:07:35 +0000 (06:07 +0000)
git-svn-id: svn://depot/macosx/trunk@13 ad1dcce9-c9fe-0310-b82b-83ea1733dbb0

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

index da6dbc39b5936096d10af6c39c09483f823bc291..01e33cceeebe2a1784f30f9aba9a2e73e6a84b57 100644 (file)
@@ -19,6 +19,12 @@ body
        color: #FFFFFF;
 }
 
+a
+{
+       color: #FFFFFF;
+       text-decoration: underline;
+}
+
 /* ################################################################### */
 /* Front */
 
@@ -66,6 +72,22 @@ body
 /* ################################################################### */
 /* Back */
 
+#backtext
+{
+       position: absolute;
+       top: 5px;
+       left: 15px;
+       font-size: 11px;
+}
+
+#backbutton
+{
+       position: absolute;
+       top: 55px;
+       left: 200px;
+       width: 500px;
+}
+
 /* ################################################################### */
 /* Flip insturments */
 
index 6d39d319148f036cac6ec7b39a0c3cbde8b44d1c..51093ac8db6c702fe4e17791655044e60e668868 100644 (file)
 <style type="text/css">
        @import "Widget.css";
 </style>
+
 <script src="Widget.js" type="text/javascript" />
+<script src="file:///System/Library/WidgetResources/button/genericButton.js" type="text/javascript" />
 
-<body>
+<body onload="setup()">
        <!-- front -->
     <div id="front" onmousemove="mousemove(event);" onmouseout="mouseexit(event);">
                <img src="Default.png" alt="" />
        <div id="back">
                <img src="Alternate.png" alt="" />
                
+               <div id="backtext">
+                       <h1>RGB Converter</h1>
+                       <div>Version [#]version[#] ($Revision$)</div>
+                       <div>&copy;2002-[#]year[#] <a href="javascript:widget.openURL('http://www.iris-studios.com')">Iris Studios, Inc</a><div>
+               </div>
                
+               <div id="backbutton"></div>
        </div>
        <!-- / back -->
 </body>
index 776a3b736e62e0dd66d0a3a05b334217847b99c5..78159625b2c600469aeb6214bbe26d7396ea9566 100644 (file)
@@ -16,6 +16,13 @@ var fields = {
        hex : ''
 };
 
+// ###################################################################
+// widget init
+function setup()
+{
+       createGenericButton(document.getElementById("backbutton"), "Done", hide_back, 0);
+}
+
 // ###################################################################
 // watches the three RGB fields to make sure they don't go over the limites
 function rgbwatcher(colour)