-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
58 lines (45 loc) · 1.41 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="shortcut icon" href="#">
<meta charset="utf-8" />
<!-- <link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@meilisearch/instant-meilisearch/templates/basic_search.css" /> -->
<link rel="stylesheet"
href="basic_search.css" />
</head>
<body>
<div id = 'outer'>
<div>
<p>Div Color Coding:</p>
<button onclick=randomDivBg()>
Random Div Background
</button>
</div>
<div>
<!-- Button for query the available indexes from meilisearch search first -->
<button onclick=preQuery()> Pre-Search </button>
</div>
<div id="index_chooser">
<!-- one button for each index -->
<p>Available Indexes:</p>
</div>
<div>
<div class="wrapper">
<div> Insert Searchbox Here </div>
<div id="searchbox" focus></div>
<div id="hits"></div>
<div id="pagination"></div>
</div>
</div>
</div>
<hr>
</body>
<script src="./meilisearch.umd.js"></script>
<!-- <script src='https://cdn.jsdelivr.net/npm/meilisearch@latest/dist/bundles/meilisearch.umd.js'></script> -->
<script
src="https://cdn.jsdelivr.net/npm/@meilisearch/instant-meilisearch@0.3.2/dist/instant-meilisearch.umd.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/instantsearch.js@4"></script>
<script src="./index.js"></script>
<link rel="stylesheet" href="index.css">
</html>