Writing a custom Bootstrap jQuery plugin
Following the patterns that we have seen in alert.js
and carousel.js
, we are going to build our own plugin. Of course, before we start coding, we need to understand what we want to build.
The idea – the A11yHCM plugin
The A11yHCM plugin, depending on your background and experience, may give you a clue about what we want to build. A11y is the accepted shorthand for Accessibility, or Web Accessibility. W3C defines web accessibility as follows:
"Web accessibility means that people with disabilities can use the web. More specifically, web accessibility means that people with disabilities can perceive, understand, navigate, and interact with the web, and that they can contribute to the web. Web accessibility also benefits others, including older people with changing abilities due to aging." | ||
--https://www.w3.org/WAI/intro/accessibility.php |
HCM is an acronym for an accessibility-related term: High Contrast Mode. HCM, in its simplest form, modifies the...