google search box script update
[sitka/doc/manual.git] / search-box.html
CommitLineData
3086df4b 1
c750be3c 2<!DOCTYPE html>
3086df4b 3
ba6697ec
T
4
5 <div style="float: right; width: 350px; position: relative; top: -30px">
8ec1ca6e
T
6 <div id='cse' style='width: 100%;'>Loading</div>
7 <script src='//www.google.com/jsapi' type='text/javascript'></script>
df702916 8
c750be3c 9 <!-- prod
8148ce0a 10 <script type='text/javascript'>
11 google.load('search', '1', {language: 'en', style: google.loader.themes.GREENSKY});
12 google.setOnLoadCallback(function() {
13 var customSearchOptions = {};
91c08c0d 14 var customSearchControl = new google.search.CustomSearchControl('004118323935733566362:einy5gdhg28', customSearchOptions);
8148ce0a 15 customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
16 var options = new google.search.DrawOptions();
17 options.setSearchFormRoot('cse-search-form');
18 customSearchControl.draw('cse', options);
19 }, true);
c750be3c 20 </script> -->
21
22 <!-- prod new script Dec 13, 17 -->
23
24 <script type='text/javascript'>
25 (function() {
26 var cx = '004118323935733566362:einy5gdhg28';
27 var gcse = document.createElement('script');
28 gcse.type = 'text/javascript';
29 gcse.async = true;
30 gcse.src = 'https://cse.google.com/cse.js?cx=' + cx;
31 var s = document.getElementsByTagName('script')[0];
32 s.parentNode.insertBefore(gcse, s);
33 })();
34 </script>
35
11012af9 36
8148ce0a 37 </div>
b145b79f 38
e578558a 39 <!-- for master
df702916
T
40
41 <script type='text/javascript'>
42 google.load('search', '1', {language: 'en', style: google.loader.themes.GREENSKY});
43 google.setOnLoadCallback(function() {
44 var customSearchOptions = {};
e578558a 45 var customSearchControl = new google.search.CustomSearchControl('004118323935733566362:uoicxmjem6w', customSearchOptions);
df702916
T
46 customSearchControl.setResultSetSize(google.search.Search.SMALL_RESULTSET);
47 var options = new google.search.DrawOptions();
48 customSearchControl.draw('cse', options);
49 }, true);
8148ce0a 50
51 </div>
e578558a 52 </script>
53
54 <link rel="stylesheet" href="http://www.google.com/cse/style/look/minimalist.css"
55 type="text/css" />
56 -->
fabea586 57
8148ce0a 58
b145b79f 59
e578558a 60
8148ce0a 61
fabea586 62
8ec1ca6e 63
c750be3c 64