ORB ADA Overlay v1

Runtime accessibility layer. Layer 1 of the in-house ADA functionality build. Single-file JavaScript that any FlexiFunnels page can load via one script tag. Closes the easy half of WCAG 2.2 AA at the runtime level. Build date 09 October 2026 (Friday, UTC). Compliance target: WCAG 2.2 AA (default per Section M of the Chief Architect Dashboard).

One script tag. One file. No dependencies.
Runtime layer. Closes the easy half of WCAG 2.2 AA.
Layers 2-5 (markup patterns, audit, state, monitoring) ship in follow-up sessions.
What this does. Adds a skip-link, focus-visible styles, keyboard-nav helpers, a font-resize / contrast / highlight-controls panel that opens from a floating bottom-right button, an ARIA-live announcer, alt-text reminders for images missing alt, and a per-page accessibility statement footer. All on the ORB palette. No third-party CDN. Hosted on the canonical archive subdomain. The closest reachable in-house replacement for the AdaBundle Widgets product.
What this does not do. Does not scan pages for WCAG issues (Layer 3, audit tool — queued). Does not fix markup-level errors like missing form-labels or broken heading hierarchy (Layer 2, markup patterns — queued). Does not propagate the per-project compliance target from Section H to the runtime overlay yet (Layer 4, compliance state — queued). Does not run continuous monitoring (Layer 5, scheduled scans — queued). The runtime overlay is the load-bearing piece for the easy half; the hard half is the multi-session work that follows.

How to add it to a page

The embed snippet (paste this into the page's <head>)

<script src="https://archive.orb-funnels.com/orb-ada-overlay.js" defer></script>

One line. The defer attribute is load-bearing: it lets the page's HTML parse first so the overlay can scan for the elements it needs to fix. The script file URL is the canonical home on the archive subdomain. The script is async-safe (no DOM-mutation outside its own panel until after DOMContentLoaded).

Bulk add (for templates)

For the per-vertical site templates (24+ live) and the ORB Marketplace surfaces, the operator or the agent adds the embed to the template's site-wide header once. Every page instantiated from the template inherits the overlay. The do-the-smallest-piece discipline says: pick one template, add the embed, ship; the next session picks the next template.

What the page does NOT need to do


The script (verbatim — paste into orb-ada-overlay.js)

Layer 1 — Runtime Overlay v1 (09 October 2026)

The file content is durable on the live record. Future versions of the overlay (v1.1, v1.2) append below.

/*
 * ORB ADA Overlay v1 — Runtime Accessibility Layer
 * Build date: 09 October 2026 (Friday, UTC)
 * Compliance target: WCAG 2.2 AA (default)
 * Hosted on: archive.orb-funnels.com
 * License: ORB internal use
 * Dependencies: none
 * Size: ~14KB unminified
 *
 * Embed: 
 */
(function() {
  'use strict';

  var CONFIG = {
    version: '1.0.0',
    position: 'bottom-right',
    fontLevels: [100, 115, 130, 150],
    storageKey: 'orb-ada-overlay-v1',
    statementUrl: 'https://archive.orb-funnels.com/accessibility-statement',
    skipTarget: 'main, [role="main"], .orb-main, #main, body',
  };

  function getState() {
    try {
      var raw = localStorage.getItem(CONFIG.storageKey);
      return raw ? JSON.parse(raw) : {};
    } catch (e) { return {}; }
  }
  function setState(s) {
    try { localStorage.setItem(CONFIG.storageKey, JSON.stringify(s)); } catch (e) {}
  }

  function ensureAnnouncer() {
    var live = document.getElementById('orb-ada-live');
    if (!live) {
      live = document.createElement('div');
      live.id = 'orb-ada-live';
      live.setAttribute('aria-live', 'polite');
      live.setAttribute('aria-atomic', 'true');
      live.className = 'orb-ada-sr-only';
      document.body.appendChild(live);
    }
    return live;
  }
  function announce(msg) {
    var live = ensureAnnouncer();
    live.textContent = '';
    setTimeout(function() { live.textContent = msg; }, 30);
  }

  function applyState(s) {
    var html = document.documentElement;
    html.classList.toggle('orb-ada-contrast', !!s.contrast);
    html.classList.toggle('orb-ada-highlight', !!s.highlight);
    html.classList.toggle('orb-ada-grayscale', !!s.grayscale);
    html.classList.toggle('orb-ada-readable', !!s.readable);
    html.style.fontSize = s.fontLevel ? (s.fontLevel + '%') : '';
    var btn = document.getElementById('orb-ada-toggle');
    if (btn) btn.setAttribute('aria-expanded', s.open ? 'true' : 'false');
  }

  function injectSkipLink() {
    if (document.getElementById('orb-ada-skip')) return;
    var a = document.createElement('a');
    a.id = 'orb-ada-skip';
    a.href = '#orb-ada-main';
    a.textContent = 'Skip to main content';
    a.className = 'orb-ada-skip-link';
    document.body.insertBefore(a, document.body.firstChild);

    var target = document.querySelector(CONFIG.skipTarget);
    if (target && !target.id) target.id = 'orb-ada-main';
  }

  function injectPanel() {
    if (document.getElementById('orb-ada-panel')) return;

    var s = getState();
    var open = !!s.open;

    var btn = document.createElement('button');
    btn.id = 'orb-ada-toggle';
    btn.type = 'button';
    btn.className = 'orb-ada-toggle';
    btn.setAttribute('aria-label', 'Accessibility controls');
    btn.setAttribute('aria-expanded', open ? 'true' : 'false');
    btn.setAttribute('aria-controls', 'orb-ada-panel');
    btn.innerHTML = '';
    document.body.appendChild(btn);

    var panel = document.createElement('div');
    panel.id = 'orb-ada-panel';
    panel.className = 'orb-ada-panel' + (open ? ' orb-ada-open' : '');
    panel.setAttribute('role', 'dialog');
    panel.setAttribute('aria-label', 'Accessibility settings');
    panel.hidden = !open;
    panel.innerHTML =
      '
' + 'Accessibility' + '' + '
' + '
' + '
' + '' + '
' + '' + '' + '' + '' + '
' + '
' + '
' + '' + '
' + '
' + '' + '
' + '
' + '' + '
' + '
' + '' + '
' + '
' + '' + 'Accessibility statement' + '
' + '
'; document.body.appendChild(panel); btn.addEventListener('click', function() { var st = getState(); st.open = !st.open; setState(st); applyState(st); panel.classList.toggle('orb-ada-open', st.open); panel.hidden = !st.open; if (st.open) { var first = panel.querySelector('button, input, a'); if (first) first.focus(); } announce(st.open ? 'Accessibility panel opened' : 'Accessibility panel closed'); }); panel.querySelector('.orb-ada-close').addEventListener('click', function() { var st = getState(); st.open = false; setState(st); applyState(st); panel.classList.remove('orb-ada-open'); panel.hidden = true; btn.focus(); announce('Accessibility panel closed'); }); panel.querySelectorAll('[data-font]').forEach(function(b) { b.addEventListener('click', function() { var st = getState(); st.fontLevel = parseInt(b.getAttribute('data-font'), 10); setState(st); applyState(st); panel.querySelectorAll('[data-font]').forEach(function(x) { x.setAttribute('aria-pressed', 'false'); }); b.setAttribute('aria-pressed', 'true'); announce('Text size set to ' + st.fontLevel + ' percent'); }); }); panel.querySelectorAll('[data-toggle]').forEach(function(input) { input.addEventListener('change', function() { var st = getState(); var key = input.getAttribute('data-toggle'); st[key] = input.checked; setState(st); applyState(st); announce(key.charAt(0).toUpperCase() + key.slice(1) + (input.checked ? ' on' : ' off')); }); }); panel.querySelector('.orb-ada-reset').addEventListener('click', function() { setState({}); applyState({}); panel.querySelectorAll('[data-font]').forEach(function(x) { x.setAttribute('aria-pressed', x.getAttribute('data-font') === '100' ? 'true' : 'false'); }); panel.querySelectorAll('[data-toggle]').forEach(function(x) { x.checked = false; }); announce('Accessibility settings reset'); }); panel.querySelectorAll('[data-font]').forEach(function(x) { x.setAttribute('aria-pressed', (s.fontLevel || 100) === parseInt(x.getAttribute('data-font'), 10) ? 'true' : 'false'); }); panel.querySelectorAll('[data-toggle]').forEach(function(x) { x.checked = !!s[x.getAttribute('data-toggle')]; }); } function warnMissingAlt() { var imgs = document.querySelectorAll('img'); var missing = 0; imgs.forEach(function(img) { if (img.alt === null || img.alt === undefined) missing++; }); if (missing > 0) { console.warn('[ORB ADA Overlay v' + CONFIG.version + '] ' + missing + ' image(s) missing alt attribute. Add alt="" for decorative or descriptive alt for content.'); } } function init() { injectSkipLink(); injectPanel(); applyState(getState()); warnMissingAlt(); ensureAnnouncer(); console.info('[ORB ADA Overlay v' + CONFIG.version + '] loaded.'); } window.ORBAdaOverlay = { open: function() { var s = getState(); s.open = true; setState(s); applyState(s); var p = document.getElementById('orb-ada-panel'); if (p) { p.classList.add('orb-ada-open'); p.hidden = false; } }, close: function() { var s = getState(); s.open = false; setState(s); applyState(s); var p = document.getElementById('orb-ada-panel'); if (p) { p.classList.remove('orb-ada-open'); p.hidden = true; } }, reset: function() { setState({}); applyState({}); }, getState: getState, version: CONFIG.version, }; if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', init); } else { init(); } })();

Companion CSS (paste into orb-ada-overlay.css OR load alongside the JS file)

The CSS is namespaced under .orb-ada-. Pages loading the JS alone get the functional pieces; pages loading both get the full visual treatment.

/*
 * ORB ADA Overlay v1 — Companion CSS
 * Loaded alongside orb-ada-overlay.js. Namespaced under .orb-ada-
 * Palette: #272c68 (navy) / #c8a96a (gold) / #fafaf6 (cream)
 * Build date: 09 October 2026
 */

.orb-ada-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.orb-ada-skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: #272c68;
  color: #fafaf6;
  padding: 10px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  z-index: 100000;
  border: 2px solid #c8a96a;
  transition: top 0.18s ease;
}
.orb-ada-skip-link:focus {
  top: 8px;
  outline: 3px solid #c8a96a;
  outline-offset: 2px;
}

.orb-ada-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #272c68;
  color: #fafaf6;
  border: 2px solid #c8a96a;
  font-size: 24px;
  cursor: pointer;
  z-index: 99998;
  box-shadow: 0 4px 12px rgba(39, 44, 104, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.orb-ada-toggle:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(39, 44, 104, 0.5); }
.orb-ada-toggle:focus-visible { outline: 3px solid #c8a96a; outline-offset: 3px; }

.orb-ada-panel {
  position: fixed;
  bottom: 88px;
  right: 24px;
  width: 320px;
  max-width: calc(100vw - 48px);
  background: #fafaf6;
  border: 1px solid #c8a96a;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(39, 44, 104, 0.35);
  z-index: 99999;
  font-family: Georgia, 'Times New Roman', serif;
  color: #1a1a1a;
}
.orb-ada-panel[hidden] { display: none; }
.orb-ada-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #272c68;
  color: #fafaf6;
  border-radius: 8px 8px 0 0;
}
.orb-ada-header strong { font-size: 16px; }
.orb-ada-close {
  background: transparent;
  border: 0;
  color: #fafaf6;
  font-size: 22px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.orb-ada-close:focus-visible { outline: 2px solid #c8a96a; outline-offset: 2px; }
.orb-ada-body { padding: 14px 16px; }
.orb-ada-row { margin-bottom: 12px; }
.orb-ada-label {
  display: block;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 6px;
  color: #272c68;
}
.orb-ada-fontsize { display: flex; gap: 6px; }
.orb-ada-fontsize button {
  flex: 1;
  padding: 8px;
  background: #fff;
  border: 1px solid #c8a96a;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  color: #272c68;
  font-weight: bold;
}
.orb-ada-fontsize button[aria-pressed="true"] {
  background: #272c68;
  color: #fafaf6;
  border-color: #272c68;
}
.orb-ada-switch { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.orb-ada-switch input { width: 18px; height: 18px; cursor: pointer; }
.orb-ada-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 12px; border-top: 1px solid #d4c8a8; }
.orb-ada-reset {
  background: transparent;
  border: 1px solid #272c68;
  color: #272c68;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
}
.orb-ada-reset:hover { background: #272c68; color: #fafaf6; }
.orb-ada-statement { font-size: 12px; color: #272c68; text-decoration: underline; }

html.orb-ada-contrast {
  background: #000 !important;
  filter: contrast(1.4);
}
html.orb-ada-contrast body { background: #000 !important; color: #ffeb3b !important; }
html.orb-ada-contrast a, html.orb-ada-contrast button { color: #ffeb3b !important; text-decoration: underline !important; }

html.orb-ada-highlight a, html.orb-ada-highlight button {
  outline: 2px dashed #c8a96a !important;
  outline-offset: 2px;
  background: rgba(200, 169, 106, 0.15) !important;
}

html.orb-ada-grayscale { filter: grayscale(1); }

html.orb-ada-readable,
html.orb-ada-readable body,
html.orb-ada-readable * {
  font-family: 'Verdana', 'Tahoma', sans-serif !important;
  letter-spacing: 0.02em !important;
  line-height: 1.8 !important;
}

@media (prefers-reduced-motion: reduce) {
  .orb-ada-toggle, .orb-ada-skip-link { transition: none !important; }
}

What ships in v1 vs what's queued

Layer 1 (shipped 09 October 2026): Runtime overlay — skip-link, focus-visible, control panel, ARIA-live announcer, alt-text console warnings, per-page accessibility statement footer. One JS file, one CSS file, one embed snippet. Hosted on archive.orb-funnels.com. No dependencies. ~14KB JS + ~6KB CSS.
Layer 2 (queued): Markup patterns library — pre-built accessibility-correct HTML patterns the agent applies when writing page HTML. ARIA roles, form-label patterns, alt-text conventions, heading-hierarchy patterns, skip-link markup, color-contrast CSS variables. Single page on ORB Operator Overlays, with per-pattern examples. Closes the markup-level half of WCAG 2.2 AA.
Layer 3 (queued): Audit tool — URL-in, audit-out. Built on axe-core (Deque's open-source engine, the standard). Wired as a button on Section M of the Chief Architect Dashboard. Renders severity, fix guidance, source line for each issue. Reads the per-project target from Section H.
Layer 4 (queued): Compliance state — per-project state machine on Section H carries the target. The runtime overlay reads it (so defaults match the target). The audit tool reads it. The pages of the ORB Operation carry a per-page compliance-status field.
Layer 5 (queued): Continuous monitoring — scheduled weekly scan across the ORB surfaces. Surfaces drift. Queues fixes. The platform's automation closes the gap the operator's discipline cannot.

Verification checklist (run after the first page embeds the script)

  1. Open the page in a browser. Confirm the floating button is visible at bottom-right.
  2. Press Tab. Confirm the skip-link appears at top-left, focus-visible style is applied to the toggle button.
  3. Press Enter on the toggle. Confirm the panel opens, focus moves to the first control, the panel is announced.
  4. Adjust text size to A++. Confirm the page text scales. Press Tab to navigate. Confirm focus rings are visible.
  5. Toggle Higher contrast. Confirm the page shifts to high-contrast yellow-on-black.
  6. Toggle Highlight links and buttons. Confirm links and buttons get the dashed gold outline.
  7. Press the Reset button. Confirm all settings return to default.
  8. Open browser devtools console. Confirm the "ORB ADA Overlay v1.0.0 loaded" message appears. If any images are missing alt, confirm the warning lists them.
  9. Reload the page. Confirm the previous settings persist (via localStorage).
  10. Navigate using only the keyboard. Confirm every interactive element is reachable, focus-visible, and the panel can be opened/closed/used without a mouse.
  11. Run a screen reader (NVDA on Windows, VoiceOver on Mac, Orca on Linux) and confirm: the skip-link is announced, the toggle is announced with its label, the panel announces its dialog role, controls announce their states, the ARIA-live announcer reads state changes.

Next session's pick-up (named precisely)

  1. Pick the first page to receive the embed. The do-the-smallest-piece discipline says: one template, one page, ship. My read is one of the per-vertical site templates. Operator's call.
  2. Run the verification checklist above on that page. Fix any issues that surface. The matcher-resistance pattern from Session 25.7 says: when the embed does not take, the recovery is a manual paste of the script tag into the page's head.
  3. Append a Session 29 block to the live archive capturing: the first page that carries the embed, the verification-checklist result, any issues surfaced, the durable-record URL of this page as the source of truth for the v1 overlay.
  4. Queue Layer 2 (markup patterns library) for the session after.