EyeAbleAPI

All functions are part of the EyeAbleAPI Object. All following functions have to be called with the EyeAbleAPI object as a reference.

EyeAbleAPI
Example
//Example how to call a function of the Eye-ABle API
EyeAbleAPI.resetAll();

initEvent

Once the Eye-Able Plugin has been sucessfully initalized the "eyeable:init_completed" Event is thrown. Any changes at page load should be done using this event.

initEvent
Example
//Example Run a custom function once Eye-Able has been initalized.
document.addEventListener("eyeable:init_completed", func);

resetAll

Reset all active functions.

resetAll()

toggleToolbar

Opens/Closes the Eye-Able toolbar

toggleToolbar()

setZoomLevel

Sets a new level for the adaptive Zoom.

setZoomLevel(level: any)
Parameters
level (any) {number} value between 0 and 20. Individual maximum zoom levels may be active depending on the website config.

toggleContrast

Toggles the currently selected contrast.

toggleContrast()

enableContrast

Enables the contrast feature.

enableContrast(background: any, textcolor: any)
Parameters
background (any) {string} rgb code of the target background color, e.g. rgb(0, 0, 0)
textcolor (any) {string} rgb code of the target text color, e.g. rgb(255, 255, 255)
Example

Example usage of the contrast feature

EyeAbleAPI.enableContrast("rgb(0, 0, 0)","rgb(255, 255, 255)");
//Reset
EyeAbleAPI.disableContrast();

disableContrast

Resets any active color contrast

disableContrast()

toggleBluefilter

Toggle the blue filter function.

toggleBluefilter()

enableBluefilter

Enables the blue filter.

enableBluefilter(level: any)
Parameters
level (any) {float} optional blue filter level [0,1] . If none given uses the current value.

disableBluefilter

Disable the bluefilter.

disableBluefilter()

toggleDarkmode

Toggle the Darkmode.

toggleDarkmode()

toggleScreenreader

Toggles the screenreader functions.

toggleScreenreader()

toggleTabNav

Toggles the tab-navigation functions.

toggleTabNav()

toggleContrastWindow

Opens/Closes the contrast window.

toggleContrastWindow()

toggleColorCorrectionWindow

Opens/Closes the color correction window.

toggleColorCorrectionWindow()

toggleMoreFunctionsWindow

Opens/Closes the functions window.

toggleMoreFunctionsWindow()

toggleHideImages

Toggle the hide images function.

toggleHideImages()

toggleAccessibleFont

Toggle the accesible font.

toggleAccessibleFont()

toggleBigCursor

Toggles the big Cursor.

toggleBigCursor()

enableBigCursor

Enables the big Cursor.

enableBigCursor()

disableBigCursor

Disables the big Cursor

disableBigCursor()