svn commit: r50744 - head/en_US.ISO8859-1/htdocs/cgi

Wolfram Schneider <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
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: -->
 <!-- &nbsp; &nbsp; &nbsp; -->
-<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" />
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-doc-all
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.