some more design changes
authorarun <arun@nubati.net>
Fri, 24 Nov 2006 23:30:20 +0000 (23:30 +0000)
committerarun <arun>
Fri, 24 Nov 2006 23:30:20 +0000 (23:30 +0000)
index.php
standard.css

index a53a23c3b163d789c08df73474303527911f82ae..de9d3820179a8ab386ab40ae11bc5bb35171f716 100644 (file)
--- a/index.php
+++ b/index.php
@@ -16,7 +16,7 @@
 
 $host  = "http://doko.nubati.net/index.php";
 $wiki  = "http://wiki.nubati.net/index.php?title=EmailDoko";
-$debug = 1;
+$debug = 0;
 
 /*
  * end config
@@ -392,9 +392,9 @@ function save_status()
   return;
 }
 
-echo "<p>If you find bugs, please list them in the <a href=\"".$wiki."\">wiki</a></p>\n";
+echo "<p>If you find bugs, please list them in the <a href=\"".$wiki."\">wiki</a>.</p>\n";
        
-echo "<p> Cards that have a <span class=\"comment\"> green </span> background have a comment, which you can access by hovering over the card with your mouse ;)</p>\n";
+echo "<p> Names that are underlined have a comment, which you can access by hovering over the name with your mouse ;)</p>\n";
 
 $history=array();
 
@@ -830,15 +830,20 @@ if(sizeof($lines)<2)
                       {
                         $tmp = explode("->",$card);
 
+                        echo "<div class=\"card".$tmp[0]."\">";
+
                         if(strlen($tmp[2])>0)
-                          echo "<div class=\"card".$tmp[0]." comment\">";
+                          echo "<span class=\"comment\">";
                         else
-                          echo "<div class=\"card".$tmp[0]."\">";
-                        echo $player[$hash[$tmp[0]]]["name"]."  <br />";
-                        display_card($tmp[1]);
+                          echo " <span>";
+                        echo $player[$hash[$tmp[0]]]["name"];
                         /* check for comment */
                         if(strlen($tmp[2])>0)
-                          echo "<div class=\"comment\">".$tmp[2]."</div>\n";
+                          echo " <span>".$tmp[2]."</span>";
+                        echo " </span>\n  ";
+       
+                        display_card($tmp[1]);
+
                         $last = $tmp[0];
                         echo "</div>\n";
                       }
@@ -1049,7 +1054,6 @@ who won?
                 echo "<br />\n";
               } /* end check for winner */
             
-            echo "<br clear=\"both\" />";
             /* do we still have cards? display them */
             if(strlen(trim($player[$me]["cards"]))>0 )
               {
index 3288da4b8391cf3e569723ed64212575836b46ef..3a08cbf6a059973dca88d6cb7ba0536ce3a59e12 100644 (file)
@@ -131,6 +131,18 @@ div.card3
   left:140px;
 }
 
+.card2 span span
+{
+   position:relative;
+   left:-80px;
+}
+
+.card3 span span
+{ 
+  position:relative;
+  top:-40px;
+}
+
 span.comment
 {
   text-decoration:underline;
@@ -141,6 +153,7 @@ span.comment
   text-decoration:none;
 }
 
+/* hide comments */
 .table div span span
 {
   position: absolute;
@@ -161,18 +174,8 @@ span.comment
  display:block;
 }
 
-.card2 span span
-{
-   position:relative;
-   left:-80px;
-}
-
-.card3 span span
-{ 
-  position:relative;
-  top:-40px;
-}
 
+/* background image for the table */
 .background0
 {
    background:url(pics/stable0.png) no-repeat 60px 60px;
@@ -189,6 +192,7 @@ span.comment
 {
    background:url(pics/stable3.png) no-repeat 60px 60px;
 }
+
 div.back0
 {
    background:url(pics/table0.png) no-repeat 100px 100px;