BUGFIX: css index prevented user from selecting a radio button and minor tweaks
authorArun Persaud <arun@nubati.net>
Thu, 20 Sep 2012 05:25:11 +0000 (22:25 -0700)
committerArun Persaud <arun@nubati.net>
Thu, 20 Sep 2012 05:25:11 +0000 (22:25 -0700)
* fixed in sickness screen
* removed unnessecary questions
* pre-selected yes for starting a game
* some minor css tweaks

css/standard.css
include/output.php

index 88ff9fde30d9d8beff9819fe846724c286e1b559..8f609f5520cbbd86e054a0d2c6540747fe48782a 100644 (file)
@@ -126,12 +126,13 @@ footer .left  { float:left;         font-size:smaller;}
 .joingame,.sickness,.poverty,.total {
  position: absolute;
  background-color: #fff;
 .joingame,.sickness,.poverty,.total {
  position: absolute;
  background-color: #fff;
+ border-radius: 5px;
  width: 20%;
  top: 30%;
  left: 40%;
  margin: auto;
  text-align: center;
  width: 20%;
  top: 30%;
  left: 40%;
  margin: auto;
  text-align: center;
- z-index:22;
+ z-index:42;
 }
 .total {
     width: 14%;
 }
 .total {
     width: 14%;
@@ -204,6 +205,7 @@ div.table div.table0 .start {
   background-color: #f00;
   border-radius: 5px;
   padding: 3px;
   background-color: #f00;
   border-radius: 5px;
   padding: 3px;
+  padding-bottom: 1px;
   margin: 3px;
 }
 
   margin: 3px;
 }
 
@@ -311,18 +313,14 @@ hr {clear:both;}
   padding:0;
  /*border: 1px solid red;*/
   top: 30%;
   padding:0;
  /*border: 1px solid red;*/
   top: 30%;
-  left:37.5%;
-  right:56.5%;
+  left:33.5%;
+  right:59.5%;
   height:40%;
   z-index:30;
   height:40%;
   z-index:30;
-}
-
-.vorbehalt0 {
-  left:37.5%;
-  right:57.5%;
   width:10%;
   text-align:left;
 }
   width:10%;
   text-align:left;
 }
+
 .tricks div div.card0 span.comment{
   position:absolute;
   margin:0;
 .tricks div div.card0 span.comment{
   position:absolute;
   margin:0;
@@ -343,18 +341,14 @@ hr {clear:both;}
   padding:0;
   /*border: 1px solid red;*/
   top: 0%;
   padding:0;
   /*border: 1px solid red;*/
   top: 0%;
-  left:47%;
-  right:47%;
-  height:40%;
-  text-align:center;
-  z-index:30;
-}
-.vorbehalt1{
   left:45%;
   right:45%;
   width:10%;
   left:45%;
   right:45%;
   width:10%;
+  height:40%;
+  text-align:center;
   z-index:30;
 }
   z-index:30;
 }
+
 .tricks div div.card1 span.comment{
   position:absolute;
   margin:0;
 .tricks div div.card1 span.comment{
   position:absolute;
   margin:0;
@@ -376,17 +370,14 @@ hr {clear:both;}
   padding:0;
   /*border: 1px solid red;*/
   top: 30%;
   padding:0;
   /*border: 1px solid red;*/
   top: 30%;
-  right:37.5%;
-  left:56.5%;
+  right:34%;
+  width:10%;
+  left:56%;
   height:40%;
   z-index:30;
   height:40%;
   z-index:30;
-}
-.vorbehalt2{
-  left:auto;
-  right:38%;
-  width:10%;
   text-align:right;
 }
   text-align:right;
 }
+
 .tricks div div.card2 span.comment{
   position:absolute;
   margin:0;
 .tricks div div.card2 span.comment{
   position:absolute;
   margin:0;
@@ -408,12 +399,15 @@ hr {clear:both;}
   padding:0;
   /*border: 1px solid red;*/
   bottom: 0%;
   padding:0;
   /*border: 1px solid red;*/
   bottom: 0%;
-  left:47%;
-  right:47%;
+  left:45%;
+  right:45%;
   height: 40%;
   z-index:30;
   height: 40%;
   z-index:30;
+  width:10%;
+  height: 3em;
+  text-align:center;
 }
 }
-.tricks div div.card3 .score, .vorbehalt3{
+.tricks div div.card3 .score{
   left:45%;
   right:45%;
   width:10%;
   left:45%;
   right:45%;
   width:10%;
index c2a644b59516a7177744b178418d8dff5e87e24d..0b18e0059289564ccf19a89c20d9f88003c18920 100644 (file)
@@ -280,61 +280,61 @@ function output_check_for_sickness($me,$mycards)
   echo '    </select>';
   echo '    <br />';
 
   echo '    </select>';
   echo '    <br />';
 
-  echo _('Wedding?');
   if(check_wedding($mycards))
      {
   if(check_wedding($mycards))
      {
+       echo _('Do you want to call Wedding?');
        echo ' '._('yes')."<input type=\"radio\" name=\"wedding\" value=\"yes\" checked=\"checked\" />";
        echo ' '._('no')." <input type=\"radio\" name=\"wedding\" value=\"no\" /> <br />\n";
      }
    else
      {
        echo ' '._('yes')."<input type=\"radio\" name=\"wedding\" value=\"yes\" checked=\"checked\" />";
        echo ' '._('no')." <input type=\"radio\" name=\"wedding\" value=\"no\" /> <br />\n";
      }
    else
      {
-       echo ' '._('no')." <input type=\"hidden\" name=\"wedding\" value=\"no\" /> <br />\n";
+       echo "  <input type=\"hidden\" name=\"wedding\" value=\"no\" />\n";
      };
 
      };
 
-  echo _('Do you have poverty?');
   if(count_trump($mycards)<4)
     {
   if(count_trump($mycards)<4)
     {
+      echo _('Do you want to call poverty?');
       echo ' '._('yes')."<input type=\"radio\" name=\"poverty\" value=\"yes\" checked=\"checked\" />";
       echo ' '._('no')." <input type=\"radio\" name=\"poverty\" value=\"no\" /> <br />\n";
     }
   else
     {
       echo ' '._('yes')."<input type=\"radio\" name=\"poverty\" value=\"yes\" checked=\"checked\" />";
       echo ' '._('no')." <input type=\"radio\" name=\"poverty\" value=\"no\" /> <br />\n";
     }
   else
     {
-      echo ' '._('no')." <input type=\"hidden\" name=\"poverty\" value=\"no\" /> <br />\n";
+      echo "  <input type=\"hidden\" name=\"poverty\" value=\"no\" />\n";
     };
 
     };
 
-  echo _('Do you have too many nines?');
   if(count_nines($mycards)>4)
      {
   if(count_nines($mycards)>4)
      {
+       echo _('Do you want to call too many nines?');
        echo ' '._('yes')."<input type=\"radio\" name=\"nines\" value=\"yes\" checked=\"checked\" />";
        echo ' '._('no')." <input type=\"radio\" name=\"nines\" value=\"no\" /> <br />\n";
      }
    else
      {
        echo ' '._('yes')."<input type=\"radio\" name=\"nines\" value=\"yes\" checked=\"checked\" />";
        echo ' '._('no')." <input type=\"radio\" name=\"nines\" value=\"no\" /> <br />\n";
      }
    else
      {
-       echo ' '._('no')." <input type=\"hidden\" name=\"nines\" value=\"no\" /> <br />\n";
+       echo "  <input type=\"hidden\" name=\"nines\" value=\"no\" />\n";
      };
 
   if($RULES['lowtrump']=='cancel' || $RULES['lowtrump']=='poverty')
     {
      };
 
   if($RULES['lowtrump']=='cancel' || $RULES['lowtrump']=='poverty')
     {
-      if($RULES['lowtrump']=='cancel')
-       echo _('Do you have low trump (cancel game)?');
-      else
-       echo _('Do you have low trump (poverty)?');
-
       if(check_low_trump($mycards))
        {
       if(check_low_trump($mycards))
        {
+          if($RULES['lowtrump']=='cancel')
+            echo _('Do you want to call low trump (cancel game)?');
+          else
+           echo _('Do you want to call low trump (poverty)?');
+
          echo ' '._('yes')."<input type=\"radio\" name=\"lowtrump\" value=\"yes\" checked=\"checked\" />";
          echo ' '._('no')." <input type=\"radio\" name=\"lowtrump\" value=\"no\" /> <br />\n";
        }
       else
        {
          echo ' '._('yes')."<input type=\"radio\" name=\"lowtrump\" value=\"yes\" checked=\"checked\" />";
          echo ' '._('no')." <input type=\"radio\" name=\"lowtrump\" value=\"no\" /> <br />\n";
        }
       else
        {
-         echo ' '._('no')." <input type=\"hidden\" name=\"lowtrump\" value=\"no\" /> <br />\n";
+         echo "  <input type=\"hidden\" name=\"lowtrump\" value=\"no\" />\n";
        };
     }
   else
        };
     }
   else
-    echo "<input type=\"hidden\" name=\"lowtrump\" value=\"no\" />";
+    echo "  <input type=\"hidden\" name=\"lowtrump\" value=\"no\" />";
 
    echo "<input type=\"hidden\" name=\"me\" value=\"$me\" />\n";
 
    echo "<input type=\"hidden\" name=\"me\" value=\"$me\" />\n";
-   echo "<input type=\"submit\" value=\""._('count me in')."\" />\n";
+   echo "<br /><input type=\"submit\" value=\""._('count me in')."\" />\n";
 
    echo "</div>\n";
 
 
    echo "</div>\n";
 
@@ -404,7 +404,7 @@ function output_check_want_to_play($me)
 {
   echo ' <div class="joingame">';
   echo '   '._('Do you want to play a game of DoKo?').' <br />';
 {
   echo ' <div class="joingame">';
   echo '   '._('Do you want to play a game of DoKo?').' <br />';
-  echo '   '._('yes').'<input type="radio" name="in" value="yes" />';
+  echo '   '._('yes').'<input type="radio" name="in" value="yes" checked="checked" />';
   echo '   '._('no').'<input type="radio" name="in" value="no" /> <br />';
   echo "<input type=\"hidden\" name=\"me\" value=\"$me\" />\n";
   echo "\n";
   echo '   '._('no').'<input type="radio" name="in" value="no" /> <br />';
   echo "<input type=\"hidden\" name=\"me\" value=\"$me\" />\n";
   echo "\n";