LAYOUT: fixed message area showing up in the wrong place during poverty setup
[e-DoKo.git] / include / welcome.php
index d5c373804de0c8ce466a5666798fe60bf6e45be0..2b2a23b72efe084490fce87a93cd6eaa7495cd18 100644 (file)
@@ -59,7 +59,7 @@ echo "<p> If you want to play a game of Doppelkopf, you found the right place ;)
 if($pre == 0)
   echo "<p> At the moment there are no games that are being started ";
  else if($pre==1)
-   echo "<p> At the moment there is one games that is being started ";
+   echo "<p> At the moment there is one game that is being started ";
  else
    echo "<p> At the moment there are $pre games that are being started ";
 
@@ -91,7 +91,12 @@ if($done==0)
   <form action="index.php?action=login" method="post">
   <fieldset>
     <label for="email">Email:</label>
-    <input type="text" id="email" name="email" size="20" maxlength="30" /> <br />
+    <input type="text" id="email" name="email" size="20" maxlength="30" autofocus /> <br />
+    <script>
+    if (!("autofocus" in document.createElement("input"))) {
+      document.getElementById("email").focus();
+    }
+    </script>
     <label for="password">Password:</label>
     <input type="password" id="password" name="password" size="20" maxlength="30" /> <br />
     <input type="submit" class="submitbutton" name="login" value="login" />