-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.html
25 lines (25 loc) · 855 Bytes
/
search.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Demo Lunr Search</title>
<meta charset="utf-8" />
<script src="https://unpkg.com/lunr/lunr.js"></script>
<script src="../lunr.js"></script>
<link href="search.css" rel="stylesheet" type="text/css">
<script src="../lunr_index.js"></script>
<script src="lunrclient.js"></script>
</head>
<body>
<p>Enter a search term, e.g., cat</p>
<form id="lunrSearchForm" name="lunrSearchForm">
<input class="search-input" name="q" placeholder="Enter search term" type="text"> <input type="submit" value="Search">
</form>
<div class="loading" id="loading-div">
<i class="fa fa-spinner fa-pulse fa-3x fa-fw"></i>
<span class="sr-only">Loading...</span>
</div>
<p>Search results will be written below:</p>
<div class="resultCount" id="resultCount"></div>
<div id="searchResults"></div>
</body>
</html>