Problem statement
A job listing board that renders inside a single container on the page. A set of pure renderer functions and one mount helper must together turn an array of jobs into a titled panel — building nodes with plain DOM APIs, never querying the document, never appending anywhere, and always replacing the container's contents so it holds exactly one child, using Vanilla TypeScript and standard DOM APIs.
Demo
The page, styles, sample job data, #app container, and bootstrap wiring are already scaffolded and wired. Only the four modules in src/js/ — renderRow.ts, renderList.ts, renderPanel.ts, and mount.ts — are missing. Implement them so every test passes. Do not edit any other file.
What to implement
- Show a titled "Open Positions" panel that lists every open job on the page.
- Show each job's title, company, and location on its own row, in the same order the jobs were given.
- Show a "No jobs available" message when the list is empty, instead of an empty panel.
- Show the panel by replacing whatever was in the container before — the page never ends up with two panels stacked on top of each other.
- Leave the list of jobs you were given unchanged.
- Everything shown must come from the input — nothing should be hardcoded.
