forked from inbenta-integrations/search_sdk_widget
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
47 lines (46 loc) · 1.53 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Inbenta Search Widget</title>
<script src="./src/js/sdk-widget.js"></script>
<link rel="stylesheet" type="text/css" href="./src/styles/sdk-widget.css">
<link rel="icon" href="https://www.inbenta.com/favicon.ico" type="image/x-icon">
</head>
<body>
<script>
createInbentaSearchSDKWidget(
"1.22.0", // SDK version
/*
Subresouce Integrity: Optional (use null to skip check)
See https://developers.inbenta.io/search/javascript-sdk/sdk-subresource-integrity
*/
"sha384-ifuG86EAWx0kUeqJZTJxHpdJDFlKrXW0JcaBz2UsA5hdIXbvM9OmBQt6I98payUv",
"<Domain key>", // Domain key
"<API key>", // API key
{
environment: "development"
}, // SDK configuration
{
refinementTabs: {
attributeName: "<ATTRIBUTE_NAME>",
},
refinementLists: {
refinements: [
{ attributeName: "<ATTRIBUTE_NAME>" },
]
},
pagination: {
padding: 1,
},
searchBox: {
autocompleter: {
showViewAllButton: false,
},
},
} //Components configuration
);
</script>
</body>
</html>