Skip to content

Instantly share code, notes, and snippets.

@JamesVanWaza
Created August 15, 2020 01:18
Show Gist options
  • Save JamesVanWaza/9f8dadb63876bf053672e17006fa6c69 to your computer and use it in GitHub Desktop.
Save JamesVanWaza/9f8dadb63876bf053672e17006fa6c69 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/themes/algolia-min.css">
<title>Algolia Quickstart Demo</title>
</head>
<body>
<h1>Algolia Quickstart Demo using Instantsearch.JS</h1>
<header>
<div id="search-box"></div>
</header>
<main>
<div id="hits"></div>
<div id="pagination"></div>
</main>
<script type="text/html" id="hit-template">
<div class="hit">
<p class="hit-name">
{{#helpers.highlight}}{ "attribute": "firstname" }{{/helpers.highlight}} {{#helpers.highlight}}{ "attribute": "lastname" }{{/helpers.highlight}}
</p>
</div>
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/algoliasearch/4.4.0/algoliasearch.umd.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/instantsearch.js/4.7.0/instantsearch.production.min.js"></script>
<script src="app.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment