From f3069376c510ac7dfd57d801004c5657a07fdca6 Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Wed, 19 Sep 2012 22:25:11 -0700 Subject: BUGFIX: css index prevented user from selecting a radio button and minor tweaks * fixed in sickness screen * removed unnessecary questions * pre-selected yes for starting a game * some minor css tweaks --- css/standard.css | 44 +++++++++++++++++++------------------------- include/output.php | 30 +++++++++++++++--------------- 2 files changed, 34 insertions(+), 40 deletions(-) diff --git a/css/standard.css b/css/standard.css index 88ff9fd..8f609f5 100644 --- a/css/standard.css +++ b/css/standard.css @@ -126,12 +126,13 @@ footer .left { float:left; font-size:smaller;} .joingame,.sickness,.poverty,.total { position: absolute; background-color: #fff; + border-radius: 5px; width: 20%; top: 30%; left: 40%; margin: auto; text-align: center; - z-index:22; + z-index:42; } .total { width: 14%; @@ -204,6 +205,7 @@ div.table div.table0 .start { background-color: #f00; border-radius: 5px; padding: 3px; + padding-bottom: 1px; margin: 3px; } @@ -311,18 +313,14 @@ hr {clear:both;} 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; -} - -.vorbehalt0 { - left:37.5%; - right:57.5%; width:10%; text-align:left; } + .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%; - left:47%; - right:47%; - height:40%; - text-align:center; - z-index:30; -} -.vorbehalt1{ left:45%; right:45%; width:10%; + height:40%; + text-align:center; z-index:30; } + .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%; - right:37.5%; - left:56.5%; + right:34%; + width:10%; + left:56%; height:40%; z-index:30; -} -.vorbehalt2{ - left:auto; - right:38%; - width:10%; text-align:right; } + .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%; - left:47%; - right:47%; + left:45%; + right:45%; 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%; diff --git a/include/output.php b/include/output.php index c2a644b..0b18e00 100644 --- a/include/output.php +++ b/include/output.php @@ -280,61 +280,61 @@ function output_check_for_sickness($me,$mycards) echo ' '; echo '
'; - echo _('Wedding?'); if(check_wedding($mycards)) { + echo _('Do you want to call Wedding?'); echo ' '._('yes').""; echo ' '._('no')."
\n"; } else { - echo ' '._('no')."
\n"; + echo " \n"; }; - echo _('Do you have poverty?'); if(count_trump($mycards)<4) { + echo _('Do you want to call poverty?'); echo ' '._('yes').""; echo ' '._('no')."
\n"; } else { - echo ' '._('no')."
\n"; + echo " \n"; }; - echo _('Do you have too many nines?'); if(count_nines($mycards)>4) { + echo _('Do you want to call too many nines?'); echo ' '._('yes').""; echo ' '._('no')."
\n"; } else { - echo ' '._('no')."
\n"; + echo " \n"; }; 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($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').""; echo ' '._('no')."
\n"; } else { - echo ' '._('no')."
\n"; + echo " \n"; }; } else - echo ""; + echo " "; echo "\n"; - echo "\n"; + echo "
\n"; echo "\n"; @@ -404,7 +404,7 @@ function output_check_want_to_play($me) { echo '
'; echo ' '._('Do you want to play a game of DoKo?').'
'; - echo ' '._('yes').''; + echo ' '._('yes').''; echo ' '._('no').'
'; echo "\n"; echo "\n"; -- cgit v1.2.3-18-g5258