Date: Sun, 27 Aug 2017 17:46:27 +0000 (UTC) From: Wolfram Schneider <wosch@FreeBSD.org> To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r50744 - head/en_US.ISO8859-1/htdocs/cgi Message-ID: <201708271746.v7RHkR0D072044@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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" />
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708271746.v7RHkR0D072044>