<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).
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.
.orb-ada- and ships inside the JS file.window globals.orb-ada-overlay.js)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();
}
})();
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; }
}