google search box script update
[sitka/doc/manual.git] / search-box.html
1
2 <!DOCTYPE html>
3
4   
5   <div style="float: right; width: 350px; position: relative; top: -30px">
6     <div id='cse' style='width: 100%;'>Loading</div>
7     <script src='//www.google.com/jsapi' type='text/javascript'></script>
8     
9     <!-- prod  
10   <script type='text/javascript'>
11     google.load('search', '1', {language: 'en', style: google.loader.themes.GREENSKY});
12     google.setOnLoadCallback(function() {
13     var customSearchOptions = {};
14     var customSearchControl =   new google.search.CustomSearchControl('004118323935733566362:einy5gdhg28', customSearchOptions);
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);
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    
36    
37       </div>
38
39     <!-- for master    
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 = {};
45       var customSearchControl =   new google.search.CustomSearchControl('004118323935733566362:uoicxmjem6w', customSearchOptions);
46       customSearchControl.setResultSetSize(google.search.Search.SMALL_RESULTSET);
47       var options = new google.search.DrawOptions();
48       customSearchControl.draw('cse', options);
49       }, true);
50       
51       </div>
52       </script>   
53     
54     <link rel="stylesheet" href="http://www.google.com/cse/style/look/minimalist.css" 
55     type="text/css" />
56     -->
57   
58
59
60  
61
62
63
64