svn commit: r54076 - head/share/xml

Li-Wen Hsu <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
Author: lwhsu (src,ports committer)
Date: Mon Apr 27 16:53:13 2020
New Revision: 54076
URL: https://svnweb.freebsd.org/changeset/doc/54076

Log:
  www.FreeBSD.org: fix search box
  
  This is a quick fix (or workaround) for the search function of www.freebsd.org.
  It adds the correct duckduckgo "site:" parameters for the freebsd.org sites we
  want to search for the keyword.
  
  Reviewed by:	bcr, allanjude
  Differential Revision:	https://reviews.freebsd.org/D24590

Modified:
  head/share/xml/header.ent

Modified: head/share/xml/header.ent
==============================================================================
--- head/share/xml/header.ent	Mon Apr 27 12:30:58 2020	(r54075)
+++ head/share/xml/header.ent	Mon Apr 27 16:53:13 2020	(r54076)
@@ -64,9 +64,9 @@
 
 <!ENTITY header2.searchbox '
   <div id="search" xmlns="http://www.w3.org/1999/xhtml">
-    <form method="get" id="search-form" action="https://duckduckgo.com/">
+    <form method="get" id="search-form" action="https://duckduckgo.com/"
+      onsubmit="document.getElementById(&#39;words&#39;).value+=&#39; site: www.FreeBSD.org site: docs.FreeBSD.org site: lists.FreeBSD.org site: wiki.FreeBSD.org site: forums.FreeBSD.org&#39;">
       <h2 class="blockhide"><label for="words">&header2.word.search;</label></h2>
-      <input type="hidden" name="sites" value="www.FreeBSD.org,docs.FreeBSD.org,lists.FreeBSD.org,wiki.FreeBSD.org,forums.FreeBSD.org" />
       <input type="hidden" name="ka" value="v" />
       <input type="hidden" name="kt" value="v" />
       <input type="hidden" name="kh" value="1" />
_______________________________________________
[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.