Skip to content

Instantly share code, notes, and snippets.

@webapprentice
Last active August 29, 2015 13:58
Show Gist options
  • Save webapprentice/9941907 to your computer and use it in GitHub Desktop.
Save webapprentice/9941907 to your computer and use it in GitHub Desktop.
<div style="width: 60%; margin:auto">
<p>Search the Web Apprentice site</p>
<script>
(function() {
var cx = '005712830755614811841:qkpmgdedxzy';
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>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment