Line 2: Line 2:
 
<!-- Place this tag where you want the share button to render. -->
 
<!-- Place this tag where you want the share button to render. -->
 
<html>
 
<html>
<form action="http://www.google.co.in" id="cse-search-box" target="_blank">
+
<script>
   <div>
+
   (function() {
     <input type="hidden" name="cx" value="partner-pub-1529295637495038:9896100513" />
+
     var cx = 'partner-pub-1529295637495038:9896100513';
     <input type="hidden" name="ie" value="UTF-8" />
+
     var gcse = document.createElement('script');
     <input type="text" name="q" size="55" />
+
     gcse.type = 'text/javascript';
     <input type="submit" name="sa" value="Search" />
+
     gcse.async = true;
  </div>
+
    gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
</form>
+
        '//www.google.com/cse/cse.js?cx=' + cx;
 
+
    var s = document.getElementsByTagName('script')[0];
<script type="text/javascript" src="http://www.google.co.in/coop/cse/brand?form=cse-search-box&amp;lang=en"></script>
+
    s.parentNode.insertBefore(gcse, s);
 +
  })();
 +
</script>
 +
<gcse:search></gcse:search>
  
 
<div class="span1 row-fluid">
 
<div class="span1 row-fluid">

Revision as of 12:43, 18 February 2015