ABDC is a trapezoid with bases AB and CD. E and H are the midpoints of the bases. Draw the diagonals and the lines from the midpoints, as shown. Lines through the crossing points cut the base AB into three equal parts: AL = LM = MB.
The source code is at github.com/KirillOsenkov/LiveGeometry. It is written in .NET and Avalonia.
Also here: Catriona Agg's geometry puzzles and puzzles from Geometry Snacks made interactive; the same gallery in plain JavaScript; and how to embed a live drawing in your own page.