Your shopping cart is empty!
How The Widget Works
Common methods are not directly related to the operation of the UserWay widget.
UserWay.getVersion();
Get UserWay API version.
UserWay.iconVisibilityOn();
Show UserWay accessibility menu icon.
UserWay.iconVisibilityOff();
Hide UserWay accessibility menu icon.
UserWay.iconVisibilityToggle();
Toggle UserWay accessibility icon's visibility.
Methods with which you can close or open the widget menu on the site, as well as a method by which you can reset the use of all functions of the widget.
UserWay.widgetToggle();
Open or close widget menu.
UserWay.widgetOpen();
Open widget menu.
UserWay.widgetClose();
Close widget menu.
UserWay.resetAll();
Reset all widget features.
Methods with which you can control the keyboard navigation function in the UserWay widget.
UserWay.keyboardNavToggle();
Enable or disable keyboard navigation.
UserWay.keyboardNavEnable();
Enable keyboard navigation.
UserWay.keyboardNavDisable();
Disable keyboard navigation.
The methods by which you can control of a big cursor in the UserWay widget.
UserWay.bigCursorToggle();
Enable or disable big cursor.
UserWay.bigCursorEnable();
Enable big cursor.
UserWay.bigCursorDisable();
Disable big cursor.
The methods by which you can control of a reading guide in the UserWay widget.
UserWay.readingGuideToggle();
Enable or disable reading guide.
UserWay.readingGuideEnable();
Enable reading guide.
UserWay.readingGuideDisable();
Disable reading guide.
The methods by which you can control the contrast in the UserWay widget.
UserWay.contrastToggle();
Enable or disable contrast feature.
UserWay.contrastEnable(stage);
UserWay.contrastDisable();
Disable contrast feature.
Methods with which you can control the functionality of large text in the UserWay widget.
UserWay.bigTextToggle();
Enable or disable big text feature.
UserWay.bigTextEnable(stage);
UserWay.bigTextDisable();
Disable big text feature.
Methods with which you can manage "desaturate" function in the UserWay widget.
UserWay.desaturateToggle();
Enable or disable desaturate feature.
UserWay.desaturateEnable();
Enable desaturate feature.
UserWay.desaturateDisable();
Disable desaturate feature.
The methods by which you can control the function of highlighting links in the UserWay widget.
UserWay.highlightToggle();
Enable or disable highlight feature.
UserWay.highlightEnable();
Enable highlight feature.
UserWay.highlightDisable();
Disable highlight feature.
The methods by which you can control the font enhancement feature in the UserWay widget.
UserWay.legibleFontsToggle();
Enable or disable legible fonts feature.
UserWay.legibleFontsEnable();
Enable legible fonts feature.
UserWay.legibleFontsDisable();
Disable legible fonts feature.
The methods by which you can control the text reading function in the UserWay widget.
UserWay.readPageToggle();
Enable or disable read page feature.
UserWay.readPageEnable();
Enable read page feature.
UserWay.readPageDisable();
Disable read page feature.
UserWay events are fired at specific points of components' life progress. Each event includes UserWay instance in payload.
/* Hide UserWay accessibility icon on init */
document.addEventListener("userway:init_completed", function(event) {
var instance = event.detail.userWayInstance;
instance.iconVisibilityOff();
});
/* Open UserWay accessibility menu on init */
/* https://codepen.io/userway/pen/QYRGqx */
document.addEventListener("userway:init_completed", function(event) {
var instance = event.detail.userWayInstance;
instance.widgetOpen();
});
Event is fired at the moment all UserWay components have been initialized.
/* Edit UserWay accessibility icon's element */
/* https://codepen.io/userway/pen/YBmPZO */
document.addEventListener("userway:render_completed", function(event) {
var userway = document.querySelector('div.userway');
if (userway) {
userway.setAttribute('title', 'The text you prefer to have as a tip');
}
});
Event is fired at the moment all UserWay DOM components have been rendered.