├── .editorconfig ├── .gitignore ├── LICENSE ├── README.md ├── babel.config.js ├── package.json ├── public ├── favicon.ico ├── img │ └── icons │ │ ├── android-chrome-192x192.png │ │ ├── android-chrome-512x512.png │ │ ├── apple-touch-icon-120x120.png │ │ ├── apple-touch-icon-152x152.png │ │ ├── apple-touch-icon-180x180.png │ │ ├── apple-touch-icon-60x60.png │ │ ├── apple-touch-icon-76x76.png │ │ ├── apple-touch-icon.png │ │ ├── favicon-16x16.png │ │ ├── favicon-32x32.png │ │ ├── msapplication-icon-144x144.png │ │ ├── mstile-150x150.png │ │ └── safari-pinned-tab.svg ├── index.html ├── manifest.json └── robots.txt └── src ├── App.vue ├── assets ├── logo.png └── logo.svg ├── constants └── constants.js ├── demo ├── ElementOrderDemo │ ├── ElementOrderDemo.vue │ └── ElementsOrder.vue ├── Home │ └── Home.vue ├── ImageManipulationDemo │ └── ImageManipulationDemo.vue └── MainDemo │ ├── List.vue │ └── MainDemo.vue ├── main.js ├── plugins └── vuetify.js ├── registerServiceWorker.js └── router └── index.js /.editorconfig: -------------------------------------------------------------------------------- 1 | [*.{js,jsx,ts,tsx,vue}] 2 | indent_style = space 3 | indent_size = 2 4 | end_of_line = lf 5 | trim_trailing_whitespace = true 6 | insert_final_newline = true 7 | max_line_length = 100 8 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | /dist 4 | 5 | # local env files 6 | .env.local 7 | .env.*.local 8 | 9 | # Log files 10 | npm-debug.log* 11 | yarn-debug.log* 12 | yarn-error.log* 13 | 14 | # Editor directories and files 15 | .idea 16 | .vscode 17 | *.suo 18 | *.ntvs* 19 | *.njsproj 20 | *.sln 21 | *.sw* 22 | 23 | package-lock.json 24 | yarn.lock -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Maya Shavin 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # vue-accessibility-demo 2 | Demo for Vue plugin for m16y - media accessibility for visually impaired user support. 3 | 4 | Demo: [https://vue-accessibility-demo.netlify.com/](https://vue-accessibility-demo.netlify.com/) 5 | 6 | It will inject a small widget with basic settings to for helping visually impaired user, including: 7 | 1. Low visions (contrast sensitivy, brightness sensitivity, etc) 8 | 2. Color blindness (texture support) 9 | 10 | ## Functionalities 11 |  12 | 13 | ### Brightness control 14 | Allow user to change the brightness of the whole app. 15 | 16 | Default: `100%` 17 | 18 | # Contrast control 19 | Allow user to change the contrsat of the whole app. 20 | 21 | Default: `100%` 22 | 23 | ### Dark mode (Night mode) 24 | Allow user to switch the app to dark theme, which is easier to read. 25 | 26 | Default: `false` 27 | 28 | ### Color blind mode 29 | * Allow user to enable color blind mode for images throughout the app. It will add texture to differentiate similar colors (red-green). 30 | 31 | * Currently only works when image is rendered using `image-wrapper` component. 32 | 33 | Default: `false` 34 | 35 | ### Grayscale mode 36 | Allow user to switch the app to grayscale color theme. 37 | 38 | ## How to use 39 | 40 | ### Install the plugin 41 | - Add the plugin to Vue using 42 | 43 | ``` 44 | import M16yPlugin from 'm16y-plugin'; 45 | 46 | Vue.use(M16yPlugin); 47 | ``` 48 | 49 | - In `App.vue` simple add attribute `v-access-ctrls` 50 | ``` 51 |