svn commit: r50744 - head/en_US.ISO8859-1/htdocs/cgi
Wolfram Schneider
wosch at FreeBSD.org
Sun Aug 27 17:46:28 UTC 2017
Author: wosch
Date: Sun Aug 27 17:46:27 2017
New Revision: 50744
URL: https://svnweb.freebsd.org/changeset/doc/50744
Log:
set autofocus only for startpage, and center the search input field
Modified:
head/en_US.ISO8859-1/htdocs/cgi/man.cgi
Modified: head/en_US.ISO8859-1/htdocs/cgi/man.cgi
==============================================================================
--- head/en_US.ISO8859-1/htdocs/cgi/man.cgi Sun Aug 27 17:46:24 2017 (r50743)
+++ head/en_US.ISO8859-1/htdocs/cgi/man.cgi Sun Aug 27 17:46:27 2017 (r50744)
@@ -969,7 +969,7 @@ i { color: #008000; }
-->
span.footer_links { font-size: small; }
input, button { font-size: large; }
-input[name='query'] { text-align: right; }
+input[name='query'] { text-align: center; }
</style>
|;
@@ -1717,11 +1717,14 @@ sub formquery {
$bstring = q{ checked="checked"};
}
+ # set focus if the input field is empty
+ my $autofocus = $query ? "" : "autofocus";
+
print <<ETX;
<form method="get" action="$BASE">
<!-- Manual Page or Keyword Search: -->
<!-- -->
-<input id="query" value="$query" name="query" size="36" autofocus />
+<input id="query" value="$query" name="query" size="36" $autofocus />
<button type="submit" name="man" value="man">man</button>
<button type="submit" name="apropos" value="1">apropos</button>
<br class="second_row" />
More information about the svn-doc-head
mailing list