2
0
mirror of https://github.com/boostorg/website.git synced 2026-01-19 04:42:17 +00:00

Update google search box

This commit is contained in:
Daniel James
2017-11-04 13:35:30 +00:00
parent cc72aac53c
commit e05866aa1c

View File

@@ -1,16 +1,15 @@
<div id="search">
<!-- Created at http://www.google.com/cse/ -->
<div id="cse-search-form" style="width: 100%;">Loading</div>
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript">
google.load('search', '1', {language : 'en'});
google.setOnLoadCallback(function() {
var customSearchControl = new google.search.CustomSearchControl('011577717147771266991:jigzgqluebe');
customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
var options = new google.search.DrawOptions();
options.enableSearchboxOnly("http://google.com/cse?cx=011577717147771266991:jigzgqluebe");
customSearchControl.draw('cse-search-form', options);
}, true);
<script>
(function() {
var cx = '011577717147771266991:jigzgqluebe';
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>
<link rel="stylesheet" href="http://www.google.com/cse/style/look/default.css" type="text/css" />
<gcse:searchbox-only></gcse:searchbox-only>
</div>