To obtain the widget snippet you should point your browser to
https://[weavyinstallation]/widget to get to the widget configurator in your weavy installation.
The widget.js url can be modified to get different versions of the bundle. You may refer to the bundle directly or download it to include it in your app if necessary. All this can be set in the widget configurator.
- widget.js - Standard bundle.
- widget.min.js - Minified standard bundle
- widget.slim.js - Bundle without jQuery
- widget.slim.min.js - Slim bundle minified
new WeavyWidget() anywhere at any point in your app. To avoid timing issues when loading it may be a good idea to make sure you instantiate WeavyWidget at the window DOMContentLoaded or load event.
s.src variables should point to your installation instead of
[weavyinstallation]). You can get a fully configured code snippet in the built-in Widget Configurator, just browse to
https://[weavyinstallation]/widget. You can also place this snippet in anywhere in your code as it will load widget.js globally before making a
new WeavyWidget() instance.