search box master production
authortji <tina.ji@bc.libraries.coop>
Thu, 14 Dec 2017 18:07:10 +0000 (10:07 -0800)
committertji <tina.ji@bc.libraries.coop>
Thu, 14 Dec 2017 18:07:10 +0000 (10:07 -0800)
Signed-off-by: tji <tina.ji@bc.libraries.coop>
search-box.html

index 706334c..a61629e 100644 (file)
@@ -3,21 +3,8 @@
 
   
   <div style="float: right; width: 350px; position: relative; top: -30px">
-    <!--  <div id='cse' style='width: 100%;'>Loading</div>  -->
-    <!--     <script src='//www.google.com/jsapi' type='text/javascript'></script>  -->
-    
-    <!-- prod  
-  <script type='text/javascript'>
-    google.load('search', '1', {language: 'en', style: google.loader.themes.GREENSKY});
-    google.setOnLoadCallback(function() {
-    var customSearchOptions = {};
-    var customSearchControl =   new google.search.CustomSearchControl('004118323935733566362:einy5gdhg28', customSearchOptions);
-    customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
-    var options = new google.search.DrawOptions();
-    options.setSearchFormRoot('cse-search-form');
-    customSearchControl.draw('cse', options);
-    }, true);
-    </script>   -->
+     <link rel="stylesheet" href="http://www.google.com/cse/style/look/minimalist.css" 
+     type="text/css" />
     
     <!-- prod new script Dec 13, 17 -->
   
    
     </div>
 
+
+
+
     <!-- for master    
     
-    <script type='text/javascript'>
-      google.load('search', '1', {language: 'en', style: google.loader.themes.GREENSKY});
-      google.setOnLoadCallback(function() {
-      var customSearchOptions = {};
-      var customSearchControl =   new google.search.CustomSearchControl('004118323935733566362:uoicxmjem6w', customSearchOptions);
-      customSearchControl.setResultSetSize(google.search.Search.SMALL_RESULTSET);
-      var options = new google.search.DrawOptions();
-      customSearchControl.draw('cse', options);
-      }, true);
-      
-      </div>
-      </script>   
     
-    <link rel="stylesheet" href="http://www.google.com/cse/style/look/minimalist.css" 
-    type="text/css" />
-    -->
-  
+    <script>
+    (function() {
+    var cx = '004118323935733566362:uoicxmjem6w';
+    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>
+    
+    <div class="gcse-search">   </div>    
+       -->