Public Functions
These are functions that allow access to information related to the plugin or interaction with the Assistive Resources.
| Public Function | Description |
|---|---|
| config | Returns the plugin configuration object. |
| version | Returns the plugin version as a string. |
| removeListenersFromIframe | Removes the listener from a specific iframe passed as a parameter. |
| addListenersToIframe | Adds the listener to a specific iframe passed as a parameter. |
| removeListenersFromIframes | Removes listeners from all iframes present on the page. |
| addListenersToIframes | Adds listeners to all iframes present on the page. |
| destroy | Removes the plugin from the page. |
| openWebsiteTranslator | Opens the Website Translator. |
| openAccessibilityFeatures | Opens Assistive Resources. |
warning
The public functions related to iframes are used in the context of the Website Translator.
For more information, visit the Dynamic Iframes page.
Example of Using Public Functions
<body>
<script src="https://plugin.handtalk.me/web/latest/handtalk.min.js"></script>
<script>
var ht = new HT({
// Replace with your access token
token: "TOKEN"
});
// View configurations
ht.config();
// View plugin version
ht.version();
// Remove the plugin from the page
ht.destroy();
// Open Website Translator
ht.openWebsiteTranslator();
// Open Assistive Resources
ht.openAccessibilityFeatures();
</script>
</body>