Skip to content
A tiny script for accessible content toggles.
HTML JavaScript
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example Made it possible to optimise DOM queries Sep 27, 2016
tests
.gitignore Added .gitignore Mar 7, 2016
LICENSE Added LICENSE May 12, 2016
README.md Added browser support info to README.md Apr 23, 2016
a11y-toggle.js Made it possible to optimise DOM queries Sep 27, 2016
a11y-toggle.min.js Made it possible to optimise DOM queries Sep 27, 2016
bower.json Added bower.json Mar 14, 2016
package.json Bumped package.json version to 2.1.0 Sep 27, 2016

README.md

A11y Toggle

A tiny script (less than 0.6Kb gzipped) to build accessible content toggles. You can try the live demo which also acts as a documentation.

a11y-toggle uses relatively modern JavaScript API (namely reduce, addEventListener, etc.) therefore will not work in Internet Explorer 8 and below. All the other browsers, including mobile ones should work fine.

Install

npm install --save a11y-toggle
bower install a11y-toggle

Tests

Mocha and expect.js are used to run browser tests.

npm test

Deploy example

The example page is deployed through GitHub Pages.

npm run deploy
You can’t perform that action at this time.