Skip to content

Instantly share code, notes, and snippets.

@shcarrico
Created April 11, 2014 00:22
Show Gist options
  • Save shcarrico/10434037 to your computer and use it in GitHub Desktop.
Save shcarrico/10434037 to your computer and use it in GitHub Desktop.
google custom search
<script>
(function() {
var cx = '005038872526037353663:nguw8i5eequ';
var gcse = document.createElement('script');
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
'//www.google.com/cse/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(gcse, s);
})();
</script>
<gcse:search></gcse:search>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment