StealThis .dev
Pages Hard

Gym — Workout Plan Builder

A drag-and-drop workout programming tool for coaches and lifters, built with vanilla JavaScript and native HTML5 drag events. A searchable exercise library grouped by muscle feeds into reorderable day blocks like Push, Pull and Legs. Each placed exercise exposes editable sets, reps and rest fields, while live per-day summaries estimate total sets and session duration. Add or remove days, reorder movements within a session, and watch the program stats update in real time.

Open in Lab
html css vanilla-js
Targets: JS HTML

Code

Workout Plan Builder

A high-energy, dark-themed programming board for the fictional Ironforge Athletics gym. The left rail is a searchable exercise library grouped by muscle (Chest, Back, Shoulders, Legs, Arms, Core), with compound and isolation badges on every card. Filter chips and a live search box narrow the list instantly, and each card is a native drag source.

The center board holds day blocks — seeded with a Push / Pull / Legs split — that act as drop zones. Drag any library card into a day to append it as an editable row with sensible default sets, reps and rest. Within a day you can grab a row and reorder it, or drag it across to a different day; a neon insertion line shows exactly where it will land. Per-row number inputs are clamped to safe ranges, day names and the program title are editable inline, and you can add or delete day blocks at will.

Every change recomputes the summaries: each day footer shows its exercise count, total working sets and an estimated session length derived from sets and rest, while the topbar tallies days, exercises and total set volume across the whole program. Saving fires a toast confirmation. It is all plain HTML, CSS and vanilla JavaScript using the HTML5 Drag and Drop API — no frameworks, no build step.