@nyris/nyris-widget v0.3.54
nyris-widget
Embed the widget to use nyris search on your website.
Usage
npm install @nyris/nyris-widget
Embed widget.js
in your website and provide
a nyrisSettings
object.
<script>
window.nyrisSettings = {
// Required
apiKey: '<YOUR_API_KEY>',
// Optional
xOptions: 'default', // See "general request options" https://docs.nyris.io/#general-request-options
baseUrl: '', // Use different server URL
jpegQuality: 0.9, // Quality of the scaled image sent to the api
maxWidth: 500, // Maximal size of the scaled image
maxHeight: 500,
responseFormat: 'application/offers.complete+json', // See "response type" https://docs.nyris.io/#response-type
instantRedirectPatterns: [ 'mysite.com' ] // If exactly one result is returned and it contains `mysite.com`,go directly to the link.
}
</script>
<script src="node_modules/@nyris/nyris-widget/dist/widget.js"></script>
Building a custom version
Follow the steps on main README initialize all packages.
Then in this directory, run npm start
for a local development server or npm run build
to build a minified widget.js
.
18 days ago
19 days ago
23 days ago
24 days ago
1 month ago
1 month ago
2 months ago
3 months ago
4 months ago
4 months ago
5 months ago
5 months ago
7 months ago
7 months ago
8 months ago
8 months ago
9 months ago
10 months ago
10 months ago
6 months ago
6 months ago
6 months ago
11 months ago
11 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago