Bookmarklet to analyse the contrast of test elements in a document
JavaScript HTML Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
client
lib
.eslintrc
.gitignore
.nojekyll
README.md
build-html.js
build-json.js
package.json
parallel.sh
rollup.config.js

README.md

Build instructions for the Contrast Widget

npm install
npm run build

Open up build/index.html in Chrome to test the widget, it runs automatically on that page.

Developing

npm run watch to build automatically.

Building

Only update the version number if the bookmarklet has changed. The bookmarklet will compare against this number for prompting the user to update the widget.

Todo

Algorithmic improvements

  • Handle semitransparent backgrounds better
  • Ignore 0 area elements

Usage improvements

  • Option to turn off update checking.