diff options
author | Arun Persaud <arun@nubati.net> | 2010-11-20 21:26:19 -0800 |
---|---|---|
committer | Arun Persaud <arun@nubati.net> | 2010-11-20 21:26:19 -0800 |
commit | 0239f6892d6bdfc942d3ee16a5ff0aa9e4e74819 (patch) | |
tree | 3a5f11ac2621a8c377e45f953abc7da6ea189af0 | |
parent | d421f362b8318cd7d016723da4f735fd6fa90a96 (diff) | |
download | e-DoKo-0239f6892d6bdfc942d3ee16a5ff0aa9e4e74819.tar.gz e-DoKo-0239f6892d6bdfc942d3ee16a5ff0aa9e4e74819.tar.bz2 e-DoKo-0239f6892d6bdfc942d3ee16a5ff0aa9e4e74819.zip |
added autofocus to login page
mixtures of html5+javascript for the moment
-rw-r--r-- | include/welcome.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/welcome.php b/include/welcome.php index d5c3738..6c9a6bc 100644 --- a/include/welcome.php +++ b/include/welcome.php @@ -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" /> |