Here’s a silly thing I made while I was home sick today. It’s a widget that produces a randomized pattern of moves to scramble a 3×3 Rubik’s Cube.

This thing is a Web Component. The interactive logic lives inside a custom HTMLElement, and the content and styling are specified inside a <template> element.