try current V2 searchbox code
[sitka/doc/manual.git] / search-box.html
CommitLineData
3086df4b
RJ
1
2
3<html>
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
fabea586 9 <!-- for prod
e3074567 10
11 <script type='text/javascript'>
0e8732b1 12 google.load('search', '1', {language: 'en', style: google.loader.themes.GREENSKY});
8ec1ca6e
T
13 google.setOnLoadCallback(function() {
14 var customSearchOptions = {};
15 var customSearchControl = new google.search.CustomSearchControl('004118323935733566362:einy5gdhg28', customSearchOptions);
0e8732b1 16 customSearchControl.setResultSetSize(google.search.Search.SMALL_RESULTSET);
8ec1ca6e
T
17 var options = new google.search.DrawOptions();
18 customSearchControl.draw('cse', options);
19 }, true);
e3074567 20 </script>
fabea586 21 -->
22
23 <script>
24 (function() {
25 var cx = '004118323935733566362:einy5gdhg28';
26 var gcse = document.createElement('script');
27 gcse.type = 'text/javascript';
28 gcse.async = true;
29 gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
30 '//www.google.com/cse/cse.js?cx=' + cx;
31 var s = document.getElementsByTagName('script')[0];
32 s.parentNode.insertBefore(gcse, s);
33 })();
34 </script>
35 <gcse:search></gcse:search>
e3074567 36
37
fabea586 38 <!-- for master
df702916
T
39
40 <script type='text/javascript'>
41 google.load('search', '1', {language: 'en', style: google.loader.themes.GREENSKY});
42 google.setOnLoadCallback(function() {
43 var customSearchOptions = {};
44 var customSearchControl = new google.search.CustomSearchControl('004118323935733566362:uoicxmjem6w', customSearchOptions);
45 customSearchControl.setResultSetSize(google.search.Search.SMALL_RESULTSET);
46 var options = new google.search.DrawOptions();
47 customSearchControl.draw('cse', options);
48 }, true);
49 </script>
fabea586 50
df702916
T
51
52 </div>
ba6697ec
T
53
54 <link rel="stylesheet" href="http://www.google.com/cse/style/look/minimalist.css"
55 type="text/css" />
fabea586 56-->
57
8ec1ca6e 58
3086df4b 59</html>