-
Notifications
You must be signed in to change notification settings - Fork 58
/
standard.html
32 lines (29 loc) · 1.18 KB
/
standard.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
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script type='text/javascript' src='jquery.swiftype.search.js'></script>
<link type='text/css' rel='stylesheet' href='search.css' media='all' />
<script type='text/javascript'>
$(function() {
$('#st-search-input').swiftypeSearch({
resultContainingElement: '#st-results-container',
engineKey: 'swiftype-api-example'
});
});
</script>
</head>
<body>
<h1>Example Swiftype Search installation</h1>
<p>
This example shows the default behavior of the Swiftype search plugin using the data created in the <a href="https://github.com/swiftype/swiftype-api-example">swiftype-api-example</a> (also, check out our <a href="https://swiftype.com/documentation/tutorials/schema_design">tutorial about the example</a>).
</p>
<p>
Try searches for "cat", "psy", or "glass".
</p>
<form>
Search your site: <input type='text' id='st-search-input' class='st-search-input' />
</form>
<div id="st-results-container" class="st-result-listing"></div>
</body>
</html>