Reference for Jahuty's web SDK.
This library requires a modern web browser.
Once configured and initialized, this script will query the DOM for snippet containers to be filled with content.
Add a container for your snippets to the DOM using the HTML5 data-* attribute
Set your API key and call
initialize(), after the resource and the DOM have finished loading, to render your snippets:
This will cause the
innerHTML of any element with the data-* attribute
data-snippet-id to be replaced with its content:
At this time, this package doesn’t support parameters.
Any errors will be logged to the browser’s console.
If you’d like to see the SDK in action, see jahuty/jahuty-web-example.
Bug reports and pull requests are welcome on GitHub.
Find a typo? Something is wrong in this documentation? Fork and edit it!