Archive 2020
December 2020
- 2020/12/28 - Back to basics - adding a playback speed control to an audio player "Add an accessible playback speed slider to an HTML5 audio element with a range input, a few lines of JavaScript and localStorage to remember the chosen speed."
- 2020/12/17 - The new and improved Developer Advocacy Handbook is out – Read Chapters 1 & 2 now "The revamped Developer Advocacy Handbook launches online with chapters one and two, built in Markdown with Jekyll on GitHub Pages and a dark/light theme."
- 2020/12/17 - Quick Tip - How to capture and replace newlines in liquid for Jekyll/GitHub Pages "Liquid has no regex, so how do you add classes to Markdown blockquotes in Jekyll? Capture a newline in a variable and use it in the replace filter."
- 2020/12/15 - Update to the Developer Evangelism/Advocacy handbook almost complete "Eleven years on, the Developer Evangelism Handbook gets a rewrite: outdated parts cut, new chapters on streaming, video and virtual events, plus the new TOC."
- 2020/12/03 - Pluralsight celebrates 25 years of JavaScript – a good opportunity to spruce up your knowledge "JavaScript turns 25 and Pluralsight marks it with 25 free courses on JavaScript.com through December plus a live build session with Cassidy Williams."
November 2020
- 2020/11/26 - Back to Basics - Creating a clickable card interface in plain HTML, CSS and JavaScript "Make whole cards clickable without nesting links, using a CSS overlay, z-index for inline links, an accessible close button and reduced-motion aware fades."
- 2020/11/23 - Shifting an image with canvas "A small canvasshift() helper that shifts an image's pixels left, right, up or down on a canvas with wrap-around, built to paint seamless tiles in TileEdit."
- 2020/11/12 - Quick hack - How to make the new CSS Overview feature of Chromium Devtools shareable "Step-by-step hack to export the experimental CSS Overview report from Chromium devtools as shareable HTML by inspecting devtools with a second devtools window."
- 2020/11/03 - How to persistently change third party web sites with browser developer tools "Tweak third-party sites with Chromium devtools: the Changes tab, Console shortcuts, Snippets, and Local Overrides that keep your edits across reloads."
- 2020/11/01 - Back to Basics - Event Delegation "Instead of attaching a click handler to every link, put one on the parent and check event.target. Event delegation explained with a live list example."
October 2020
- 2020/10/29 - Writing a dog picture browser in ~200 lines of code "Building a dependency-free dog picture browser on the Dog CEO API with fetch, a datalist breed autocomplete and CSS loading and error states, step by step."
- 2020/10/19 - Getting dicey – how I failed to write a perfect dice throw simulator and how that is totally OK "A browser dice throw simulator with lockable dice, built for fun with flexbox, vw units and focus-within, and why imperfect side projects are worth doing."
- 2020/10/08 - “How normal am I” is an excellent security and privacy resource about Artificial Intelligence on the web "How Normal Am I, an EU-funded site, uses your webcam to show what face analysis algorithms guess about you and explains how badly and unfairly they can fail."
- 2020/10/02 - How to be a more effective developer week (tools and tricks) "Slides and annotated resources from a ScotSoft CmdR talk on tooling that prevents mistakes, plus developer hacks shared at Microsoft Create: Serverless."
September 2020
- 2020/09/24 - Checkboxes make excellent buttons "Use labelled checkboxes as toggle buttons: hide the box, style the label with :checked and :focus, and read the checked property in JS rather than track state."
- 2020/09/15 - Tools should not only be for experts – they should turn us into them "Browser devtools have grown overwhelming. Visual, contextual and task-based tools with built-in guidance like webhint could turn newcomers into experts."
- 2020/09/03 - Quick and dirty - Batch conversion of lots of video files on the command line with PHP and ffmpeg "A quick PHP command line script that loops through old .asf, .3gp and .mpeg clips and uses ffmpeg to batch convert them all into a folder of MP4 files."
- 2020/09/03 - A “right-click to show alt text” browser extension "The alt text bookmarklet repackaged as an Edge and Chrome extension, so you can right-click any image to see its alternative text, even on CSP-protected sites."
August 2020
- 2020/08/27 - Alt text overlay bookmarklet "A bookmarklet that overlays the alt text of every image on a page for quick accessibility checks, inspired by Amelia Bellamy-Royds. CSP blocks it on some sites."
- 2020/08/19 - Fun project - Shakespeare Insult Generator "A Shakespeare insult generator built from an image shared on Facebook, with a tip on using OneNote's text recognition to extract the word lists quickly."
July 2020
- 2020/07/22 - Style Stage and old people of the web "An apology for a snarky tweet about Stephanie Eckles' Style Stage, and reflections on CSS Zen Garden and how veteran web advocates failed new audiences."
- 2020/07/20 - Quick tip - how to make mailto - links open in Gmail in Microsoft Edge "Three steps to make mailto: links open in Gmail or another webmail client in Microsoft Edge using the protocol handler icon, and how to undo it in settings."
- 2020/07/16 - A CSS only “click to animate gif” solution "A CSS-only, keyboard-accessible way to hide animated GIFs behind a play button using a label, hidden checkbox and focus-within, optionally under reduced motion."
- 2020/07/06 - Always bet on HTML – being misunderstood "A response to Always bet on HTML: why many developers undervalue HTML, from forgiving parsers and form styling pain to scale and JavaScript's sense of control."
June 2020
- 2020/06/30 - How good IDEs help you do the right thing "Adding an image the right way in VS Code: Emmet autocompletes the tag and image dimensions while the webhint extension flags the missing alt text as you type."
- 2020/06/26 - Testing your animations for “prefers-reduced-motion” support "Respect users who turn off animations with the prefers-reduced-motion media query and matchMedia, and test it quickly with Chromium devtools emulation."
- 2020/06/25 - Talking about the fun I have with HTML canvas at “Programmed in Pencil” – Video, Slides and code examples "Video, slides and documented code examples from a Programmed in Pencil meetup talk on manipulating images pixel by pixel with HTML canvas and plain JavaScript."
May 2020
- 2020/05/25 - That was Halfstack Online’s first edition (musings, and slides) "How the first online HalfStack kept its relaxed pub vibe with pre-recorded talks and live Q&A, plus slides from a talk on hidden Chromium devtools features."
- 2020/05/05 - Progressively enhancing radio buttons with SVG whilst staying accessible "Turn a plain radio group into styled SVG icon buttons with labels, CSS states and ARIA, keeping keyboard and screen reader support. Plus an ID-free alternative."
April 2020
- 2020/04/22 - Limiting input type=”color” to a certain palette (from an image) "Restrict input type=color to a preset palette using a datalist, then extract every colour of an uploaded image with canvas and a Web Worker to fill it."
- 2020/04/17 - The joy of pixeling and building pixel tools with HTML5 canvas and JavaScript "A love letter to Commodore 64 pixel art and three open source canvas tools built for it: a C64 colour changer, the TileEdit tile painter and Logo-O-Matic."
- 2020/04/02 - Quick solution - getting the mouse position on an element regardless of positioning "A compact replacement for layerX and layerY: subtract getBoundingClientRect() from clientX and clientY to get the mouse position on any element."
March 2020
- 2020/03/25 - #workfromhome – If you value your colleagues, use a headset "Advice from eight years of remote work: wear a headset on calls so colleagues only hear your voice, you can type quietly and you always know if your mic is on."
- 2020/03/20 - Fun with browsers - how to get an image into the current page "Short, modern JavaScript to let users add an image to a page via file upload, drag and drop or clipboard paste, working in all major browsers. CodePen included."
January 2020
- 2020/01/30 - Quick developer tools tip - simulating dark/light colour mode "Test prefers-color-scheme without switching your OS: the Rendering panel in Edge and other Chromium developer tools can emulate dark and light mode."
- 2020/01/23 - Contributor performance considerations "Adding a JSON entry to an open source list pulled 670MB of dependencies. Projects should optimise for contributor performance, not just end users."
- 2020/01/09 - Swagged out "Moving house exposed piles of conference swag. Thoughts on waste, how Beyond Tellerrand handles it better, and personal habits to cut down on freebies."