google search box script update
authortji <tina.ji@bc.libraries.coop>
Wed, 13 Dec 2017 19:47:55 +0000 (11:47 -0800)
committertji <tina.ji@bc.libraries.coop>
Wed, 13 Dec 2017 19:47:55 +0000 (11:47 -0800)
Signed-off-by: tji <tina.ji@bc.libraries.coop>
search-box.html

index 6da74f9..612fa2e 100644 (file)
@@ -1,12 +1,12 @@
 
+<!DOCTYPE html>
 
-<html>
   
   <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   -->
+    <!-- prod  
   <script type='text/javascript'>
     google.load('search', '1', {language: 'en', style: google.loader.themes.GREENSKY});
     google.setOnLoadCallback(function() {
     options.setSearchFormRoot('cse-search-form');
     customSearchControl.draw('cse', options);
     }, true);
-  </script>
+    </script>   -->
+    
+    <!-- prod new script Dec 13, 17 -->
+    
+    <script  type='text/javascript'>
+      (function() {
+      var cx = '004118323935733566362:einy5gdhg28';
+      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>
 
@@ -46,4 +61,4 @@
 
 
 
-</html>
+