Geschreven door Chris Schmidt op 20 december 2022

Eye-Able Manually adapt to your own website

Accessibility

Eye-Able manuell an die eigene Webseite anpassenLaptopbildschirm auf dem Programmiersprache zu sehen ist.

With a self-control over the configuration, you can adapt Eye-Able - beyond the configurator - to your own website.

Photo Credits: Any IP Ltd, Link to the Author is Simplex - Web Design Sydney 

In case of a self-control over the configuration, one can adapt Eye-Able - beyond the configurator - to one's own website. The advantages of such a customization are described in the article "What are the advantages of an initial customization? To make these customizations an advanced understanding of HTML and CSS is necessary. Therefore, for each website we offer the option of a full testing and optimization of Eye-Able . However, some options of this customization are possible at any time for non-managed users of Eye-Able . Available settings are presented below.

Note: The following configurations are only a subset of the parameters available in a full optimization through Eye-Able .

To extend the Eye-Able configuration additional key-value pairs have to be added to the eyeAble_pluginConfig variable. An example configuration can be found here (https://www.eye-able-cdn.com/example.js).

Besides the integration of the config directly inline, changes to the Eye-Able configuration can also be performed via a separate function. To be able to make changes to the configuration yourself, the method via the eyeAble_updateConfig() methodis therefore recommended:

<script type="text/javascript" >
    function eyeAble_updateConfig() {
        eyeAble_pluginConfig.topPosition = "200px"; //Verändere die Top-Position des Icons
        eyeAble_pluginConfig.maxMagnification = 10;
        if(eyeAble_pluginConfig.blacklistContrast){
            //append to the existing rules, otherwise they get overwritten
            eyeAble_pluginConfig.blacklistContrast += ".myClass";
        } else {
            eyeAble_pluginConfig.blacklistContrast = ".myClass";
        }
    }
</script>

Parameters that should not be changed can be commented out.

Magnification:

The following parameters exist to limit the magnification:

  • maxMagnification: [int] Describes the maximum magnification (default: 21)

  • maxMobileMagnification: [int] Describes the maximum mobile magnification (default: 3).

Position:

The following parameters exist to change the position of the main icon:

  • topPosition: [String] Sets the top position of the icon on the desktop in % or px (Default: "10%")

  • rightPosition: [String] Sets the right position of the icon on the desktop in px. If sidePosition is set to "left" the left position will be set (default: "10px").

  • mobileBottomPosition: [String] Sets the bottom position of the mobile icon in % or px (default: "15%").

  • mobileRightPosition: [String] Sets the right position of the mobile icon in px (default: "10px").

  • sidePosition: [String] Sets the side at which the icon appears "left" or "right" (Default: "right")

Appearance:

The following parameters exist to change the appearance:

  • mainIconAlt: [int] Change the main icon between three variants 0, 1 or 2 (default: 0)

  • iconSize: [int] Change the size of the icon on the desktop, recommended values between 50-70 pixels (default: 70px)

  • mobileIconSize: [int] Change the size of the mobile icon, recommended values between 35-50 pixels (default: 50px).

Screen reader:

The following parameters can be used to modify the customization CSS classes:

  • customSrBlacklistCSS: [String] Changes the CSS class for the elements to exclude (default: eyeAble_SrSkip).

  • customSrStartCSS: [String] Changes the CSS class for the new start element (default: eyeAble_SrStart).

  • customSrTextCSS: [String] Changes the CSS class for the block to be read out (default: eyeAble_SrText ).

Exclude elements from functions:

The following parameters can be used to exclude certain elements from the functions of Eye-Able . This is useful for text that breaks out of its container when zoomed in, or for elements whose colors should not be adjusted by the contrast or night mode. Elements can be selected using native CSS selectors. More info here. Multiple CSS selectors are separated by commas. The exception also applies to all children of selected elements!

  • blacklistContrast : [String] Exclude elements from the color adjustment of the contrast or night mode.


E.g.Es ist Code zu sehen.

  • blacklistFontsize : [String] Exclude elements from the font magnification.

E.g.

  • forceWhiteBackground: [String] Forces a white background when night or contrast mode is enabled.

Sebastian Fjeld

Sebastian Fjeld has been part of the team as a professional voiceover artist and copywriter at Eye-Able® since the beginning. He studied voice acting at a university and was trained by actors. Currently he is completing his education as an interpreter for various languages.

More contributions

If it may be a little more

Filter

Filter op categorie

Bevestig je selectie met de knop aan het einde van de lijst na het kiezen van de categorieën.

Filters resetten
Blauw Eye-Able-embleem met de letters EAA op een lichte achtergrond

Waarom een nieuwe wetgeving Digitale Toegankelijkheid (EAA)?

Lees verhaal
Man met bril en gestreept shirt die een laptop gebruikt. Naast hem staat een illustratie van een checklist op een clipboard met vinkjes en het universele toegankelijkheidssymbool, wat het controleren van digitale toegankelijkheid en naleving van richtlijnen visualiseert.

Checklist! Voldoet jouw website aan de Wet Digitale Toegankelijkheid (EAA)?

Lees verhaal
Es ist eine Straßensperrung zu sehen, welche eine Straße Richtung Strand blockiert. Auf der Sperrung hängt ein Schild, auf dem "Straße gesperrt" auf englisch steht. Im Hintergrund sind Sanddünen und blauer Himmel zu sehen.

Digitale toegankelijkheid en barrières herkennen: de meest voorkomende obstakels in het dagelijks leven

Lees verhaal
Mensch sitzt vor einem Laptop und fasst sich verzweifelt an die Stirn.

Onzichtbare barrières in het dagelijks leven en waar je ze vindt

Lees verhaal

You need more informations?

Write to us and we will be happy to help you.

A man and a woman look at a monitor and laugh