forked from swiftype/swiftype-autocomplete-jquery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
standard.html
22 lines (22 loc) · 801 Bytes
/
standard.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js'></script>
<script type='text/javascript' src='jquery.swiftype.autocomplete.js'></script>
<link type='text/css' rel='stylesheet' href='autocomplete.css' media='all' />
<script type='text/javascript'>
$(function() {
$('#st-search-input').swiftype({
searchFields: {'page': ['title']},
engineKey: 'hGbFw82z3WdSMZ9q764B'
});
});
</script>
</head>
<body>
<form>
<h1>Example Swiftype Autocomplete installation</h1>
Search your site: <input type='text' id='st-search-input' class='st-search-input' />
</form>
</body>
</html>