Configuration Options
Customize the appearance and behavior of the widget by defining `window.A11yCoreConfig` before the script loads.
Basic Structure
javascript
window.A11yCoreConfig = {
licenseKey: 'Required',
branding: {
primaryColor: '#10b981',
name: 'My Organization'
},
widget: {
position: 'bottom-right'
}
};Options Reference
branding
Customize the visual identity of the widget.
javascript
branding: {
primaryColor: '#10b981', // Main brand color
accentColor: '#059669', // Secondary accent color
logo: 'https://example.com/logo.png', // URL to your logo
name: 'My Company' // Display name
}widget
Control the widget's position and trigger behavior.
javascript
widget: {
position: 'bottom-right', // 'bottom-left', 'top-right', 'top-left'
offset: { x: 20, y: 20 }, // Pixel offset from edge
triggerKey: 'Ctrl+U', // Keyboard shortcut to open
showBadge: true, // Show accessibility badge
pulseOnFirstVisit: true // Attention-grabbing animation
}analytics
Configure data collection settings.
javascript
analytics: {
enabled: true,
consent: true, // Require user consent
endpoint: 'https://analytics.example.com' // Custom endpoint
}defaults
javascript
defaults: {
language: 'en',
rememberSettings: true,
respectSystemPreferences: true
}