Skip to content

Instantly share code, notes, and snippets.

@neps-in
Last active December 25, 2021 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neps-in/55aa8c338a1d71a0930786db4b5a3785 to your computer and use it in GitHub Desktop.
Save neps-in/55aa8c338a1d71a0930786db4b5a3785 to your computer and use it in GitHub Desktop.
Expertrec custom search embed code
<!-- paste the entire code where you would be using your search box -->
<script type="text/javascript">
(function() {
// Get your API Key at expertrec.com by creating a free account.
var id = 'your_api_key';
var ci_search = document.createElement('script');
ci_search.type = 'text/javascript';
ci_search.async = true;
ci_search.src = 'https://cse.expertrec.com/api/js/ci_common.js?id=' + id;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ci_search, s);
})();
</script>
<!-- paste the below code where you want your expertrec search box -->
<ci-search></ci-search>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment