-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
This guide will walk you through installing the Accessibility Widget on your website.
There are two main ways to install the Accessibility Widget:
- CDN Installation (Recommended) - No file hosting required
- Manual Installation - Download and host files yourself
The easiest way to install the plugin is using the jsDelivr CDN. This requires no file hosting and ensures you always have the latest version.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Your Website</title>
<!-- Include Boxicons for icons (required) -->
<link rel="stylesheet" href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css">
<!-- Include the CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/website-accessibility-filter@latest/accessibility-plugin.css">
<!-- Include the config (optional - customize as needed) -->
<script src="https://cdn.jsdelivr.net/npm/website-accessibility-filter@latest/accessibility-config.js"></script>
<!-- Include the plugin (must be loaded last) -->
<script src="https://cdn.jsdelivr.net/npm/website-accessibility-filter@latest/accessibility-plugin.js"></script>
</head>
<body>
<!-- Your content here -->
</body>
</html><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Your Website</title>
<!-- Include Boxicons for icons (required) -->
<link rel="stylesheet" href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css">
<!-- Include the CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/airforcerp/Website-Accessibility-Widget@latest/web/accessibility-plugin.css">
<!-- Include the config (optional - customize as needed) -->
<script src="https://cdn.jsdelivr.net/gh/airforcerp/Website-Accessibility-Widget@latest/web/accessibility-config.js"></script>
<!-- Include the plugin (must be loaded last) -->
<script src="https://cdn.jsdelivr.net/gh/airforcerp/Website-Accessibility-Widget@latest/web/accessibility-plugin.js"></script>
</head>
<body>
<!-- Your content here -->
</body>
</html>For production use, it's recommended to use a specific version instead of @latest:
<!-- Use version 1.0.0 -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/website-accessibility-filter@1.0.0/accessibility-plugin.css">
<script src="https://cdn.jsdelivr.net/npm/website-accessibility-filter@1.0.0/accessibility-config.js"></script>
<script src="https://cdn.jsdelivr.net/npm/website-accessibility-filter@1.0.0/accessibility-plugin.js"></script>If you prefer to host the files yourself, follow these steps:
Download the following files from the GitHub repository:
accessibility-plugin.jsaccessibility-plugin.css-
accessibility-config.js(optional)
Upload the files to your web server. You can place them in any directory, for example:
your-website/
βββ js/
β βββ accessibility-plugin.js
β βββ accessibility-config.js
βββ css/
β βββ accessibility-plugin.css
βββ index.html
Add the following code to your HTML pages:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Your Website</title>
<!-- Include Boxicons for icons (required) -->
<link rel="stylesheet" href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css">
<!-- Include the CSS -->
<link rel="stylesheet" href="path/to/accessibility-plugin.css">
<!-- Include the config (optional) -->
<script src="path/to/accessibility-config.js"></script>
<!-- Include the plugin (must be loaded last) -->
<script src="path/to/accessibility-plugin.js"></script>
</head>
<body>
<!-- Your content here -->
</body>
</html>After installation, you should see:
- Accessibility Button: A button in the bottom-right (or bottom-left) corner of your page
- No Console Errors: Check your browser's developer console (F12) for any errors
- Widget Appears: Click the button to open the accessibility panel
- Open your website in a browser
- Look for the "Accessibility" button in the bottom-right corner
- Click the button to open the panel
- Try adjusting font size or contrast
- Check the browser console (F12) for any errors
Problem: The accessibility button doesn't appear.
Solutions:
- Check that all files are loaded (view page source and verify links)
- Check browser console for JavaScript errors
- Ensure Boxicons CSS is loaded before the plugin CSS
- Verify that
accessibility-plugin.jsis loaded last
Problem: JavaScript errors in the console.
Solutions:
- Ensure all files are in the correct order
- Check file paths are correct
- Verify Boxicons is loaded
- Check for conflicts with other scripts
Problem: Widget appears but looks broken.
Solutions:
- Ensure CSS file is loaded
- Check for CSS conflicts with your site's styles
- Verify Boxicons CSS is loaded
- Check browser console for CSS errors
After installation:
- Configure the plugin - Customize default settings
- Test features - Try out all accessibility options
- Customize appearance - Match your site's design
- Check the Troubleshooting page
- View the FAQ
- Open an issue on GitHub
- Email: accessibility@airforcerp.com
- Installation Guide - Step-by-step installation instructions
- Quick Start Guide - Get up and running in 5 minutes
- Configuration Guide - Customize the plugin to your needs
- Features Overview - Complete list of all features
- JavaScript API - Programmatic control documentation
- Browser Compatibility - Supported browsers and features
- WordPress Integration - How to integrate with WordPress
- Customization Guide - Styling and theming
- Advanced Usage - Tips and tricks for power users
- Contributing - How to contribute to the project
- Development Setup - Set up your development environment
- Architecture - Understanding the codebase
- Troubleshooting - Common issues and solutions
- FAQ - Frequently asked questions
- Known Issues - Current limitations and workarounds