Project

General

Profile

Actions

Task #2359

closed

Add Google Custom Search to documentation website

Added by Olivier Hallot over 6 years ago. Updated almost 5 years ago.

Status:
Rejected
Priority:
Normal
Category:
-
Target version:
Team - Pool
Start date:
Due date:
% Done:

0%

Tags:

Description

The code snippet below should be avaliable in each page of the documentation website (https://documentation.libreoffice.org) so visitors can search the web site.

The code is tuned to the doc website. Other websites get other code.

I suggest it be displayed on the top of the page, below the header (menus) and on the right of the breadcrumb div.

---------------8<---------------------
<script>
(function() {
var cx = '010161382024564278136:rdr0n2xcnpe';
var gcse = document.createElement('script');
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = 'https://cse.google.com/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(gcse, s);
})();
</script>
<gcse:search></gcse:search>
---------------8<---------------------

The code is marked non-profit, that is, without ads, but I have not tested.
Thank you

Actions

Also available in: Atom PDF