שייך להגדרת הווידג'ט

שייך / תיעוד

סכמת ההגדרות

כל האפשרויות של window.A11yConfig, מתוך סכמת ה-JSON עצמה. הן כתובות באנגלית.

קובץ ה-JSON Schema

Every option is optional. Unknown keys and invalid values are ignored with a console warning prefixed [shayach].

Options

OptionTypeDescription
language"auto" | "he" | "ar" | "ru" | "en"Default panel language. 'auto' uses the page's lang attribute when it is he, ar, ru or en, otherwise Hebrew. A visitor's own choice always wins.
default: "auto"
statementUrlstringhttp(s) or relative URL of the site's accessibility statement page. When set, the panel footer links to it.
iconobject
icon.position"auto" | "top-right" | "top-left" | "upper-right" | "upper-left" | "middle-right" | "middle-left" | "lower-right" | "lower-left" | "bottom-right" | "bottom-left"'auto' is bottom-right on RTL pages and bottom-left on LTR pages. upper and lower sit a quarter and three quarters of the way down the screen. A visitor who moves the button (see draggable) sees their own choice.
default: "auto"
icon.offsetXnumberDistance in px from the side edge. Ignored by the edge-tab shape.
default: 20, min 0, max 200
icon.offsetYnumberDistance in px from the top or bottom edge. For middle it shifts the button down from the center; for upper and lower it is the margin kept at the top and bottom of the screen.
default: 20, min 0, max 200
icon.sizenumberButton height in px.
default: 56, min 44, max 96
icon.shape"circle" | "rounded" | "pill" | "edge-tab"
default: "circle"
icon.backgroundstringCSS color. Default: theme.primary.
icon.foregroundstringCSS color for the symbol and label. Default: black or white, whichever contrasts more. Replaced automatically if below 4.5:1 contrast.
icon.labelTextstringCustom visible label for the pill and edge-tab shapes. Default: the word for accessibility in the panel language.
max length 40
icon.labelLanguage"he" | "ar" | "ru" | "en"Fix the built-in label's language instead of following the panel language.
icon.mobileobjectOverrides for screens up to 640px wide.
icon.mobile.position"top-right" | "top-left" | "upper-right" | "upper-left" | "middle-right" | "middle-left" | "lower-right" | "lower-left" | "bottom-right" | "bottom-left"
icon.mobile.offsetXnumber
min 0, max 200
icon.mobile.offsetYnumber
min 0, max 200
icon.mobile.sizenumber
min 44, max 96
icon.draggablebooleanVisitors can drag the button to one of the ten positions, or choose one in the panel's button position card. Their choice is saved only in their own browser and Reset settings removes it. false keeps the button where you put it and hides the card.
default: true
themeobjectPanel colors (any CSS color). Text colors that fall below 4.5:1 contrast are replaced with black or white automatically and a warning is logged.
theme.primarystringHeader, selected tiles and tile icons. Default #1f5eff.
theme.onPrimarystringText and icons on the primary color. Default: black or white, whichever contrasts more.
theme.backgroundstringPanel background. Default #ffffff.
theme.textstringPanel text. Default #1d1d1f.
theme.mutedstringSecondary text. Default #5f6672.
theme.borderstringTile and divider borders. Default #d5dbe7.
theme.surfacestringSubtle highlight backgrounds. Default #f3f6ff.
theme.scrollbarstringScrollbar thumb inside the panel and the statement window. Default: theme.primary. Below 3:1 against theme.surface (WCAG 1.4.11) it is replaced with theme.text, with a warning.
statementobjectData for the generated accessibility statement. Missing required items are listed on the statement page instead of being invented.
statement.organizationNameLegal or public name of the organization. Required for a complete statement.
statement.organizationDescriptionOne line describing the organization or the site.
statement.commitmentYour commitment to accessibility, in your own words.
statement.updatedAtstringDate the statement was last reviewed, as YYYY-MM-DD. Required for a complete statement.
statement.conformanceLevel"A" | "AA" | "AAA"Only set a level your site was actually audited at; the statement never claims a level you did not set.
statement.additionalStandardsarrayOther standards the site was checked against, for example WCAG 2.2 AA.
statement.adjustmentsarrayAccessibility adjustments the site offers. Required for a complete statement.
statement.reviewFrequencyHow often accessibility is reviewed, for example every 6 months.
statement.measuresarrayMeasures taken to keep the site accessible, such as audits or staff training.
statement.browsersarrayBrowsers the site was tested with.
statement.assistiveTecharrayAssistive technologies the site was tested with.
statement.knownLimitationsarrayKnown parts of the site that are not accessible.
statement.thirdPartyPagesarrayPages or content provided by third parties that you do not control.
statement.exemptionsarrayParts of the site for which you rely on a legal exemption.
statement.stageobjectUse when the site is still being made accessible.
statement.stage.descriptionCurrent stage of the accessibility work.
statement.stage.completionDatestringPlanned completion date, as YYYY-MM-DD.
statement.stage.alternativesAlternatives available until the work is done.
statement.temporaryNoticesarrayShort-lived notices, such as a page that is being fixed.
statement.physicalArrangementsAccessibility arrangements at the physical premises. Required unless noPhysicalService is true.
statement.noPhysicalServicebooleanSet true when the organization has no physical place that serves the public.
statement.coordinatorobjectThe accessibility coordinator. Either coordinator or contact is required.
statement.coordinator.nameContact person's name.
statement.coordinator.phonestringPhone number, digits with optional + ( ) - and spaces.
statement.coordinator.emailstringEmail address.
statement.coordinator.otherAny other way to reach them, such as a fax number or postal address.
statement.contactobjectA general accessibility contact. Either coordinator or contact is required.
statement.contact.nameContact person's name.
statement.contact.phonestringPhone number, digits with optional + ( ) - and spaces.
statement.contact.emailstringEmail address.
statement.contact.otherAny other way to reach them, such as a fax number or postal address.

Usage

<script>
  window.A11yConfig = {
    language: "he",
    icon: { position: "bottom-right" }
  };
</script>
<script src="https://shayach.co.il/v1/widget.js" defer></script>

Schema URL: https://shayach.co.il/v1/config.schema.json