Demos
List of my programming examples including demos, projects, and live test suites.
-
Demo: Alert-Dialog Polyfill
Demo of a vanilla JavaScript polyfill for the browser's modal dialog methods alert(), confirm(), and prompt(), in case Google really removes them and breaks the web.
-
Test Suite: SAM pattern Calculator demo
Test suite and demo for an Accessible Calculator supporting keyboard navigation and input, built with CSS grid, ARIA alert, and vanilla JavaScript, using the SAM pattern and dependency injection.
-
Test Suite: SAM pattern Countdown demo
Test suite and Countdown demo for a SAM pattern module that uses dependency injection and factory functions.
-
Test Suite: Data-driven testing with `wheredoc`
Test suite for `wheredoc` data table testing module.
-
Demo: Most boring To-do list
Very plain To-do list made from accessible HTML, modern vanilla JavaScript and minimally tolerable CSS.
-
Demo: Accessible CSS-driven Tabs
Working demo of tabbed content using CSS, no JavaScript, responsive to screen widths, and accessible to keyboard navigation and screen readers.
-
Test suite: Safe assign wrapper for Object.assign()
Test suite for safe-object-assign.js module.
-
Test suite: Safer math operations in JavaScript
Test suite for safe-math.js module.
-
Demo: Test suite setup with mocha, chai, and fast-check
Running example of a JavaScript test suite in the browser, using mocha, chai, and fast-check testing libraries