StealThis .dev
Pages Hard

LMS — Quiz / Assessment

A self-contained quiz runner for e-learning platforms that shows one question at a time with a live progress bar and countdown timer. It supports multiple-choice, multi-select, and true/false questions, plus flag-for-review, previous and next navigation, and a question navigator. Submitting reveals an animated score ring, pass or fail verdict, point totals, and a full per-question review with correct answers and plain-language explanations for every item answered.

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

Code

Quiz / Assessment

A focused quiz runner for an LMS module checkpoint. A sticky header pairs the course badge with a difficulty pill, a tabular countdown timer that turns red in the final minute, and a gradient progress bar tracking how many questions are answered. Below it, a navigator strip of numbered dots lets learners jump to any question, with subtle markers for answered and flagged items.

Each question renders one at a time and adapts to its type: single-select shows radio marks, multi-select shows checkboxes with a “select all that apply” hint, and true/false collapses to two options. Learners can move with Previous and Next buttons or the arrow keys, and flag any item for review. A submit bar stays pinned to the bottom and opens a confirmation modal that warns about unanswered questions.

On submit, the runner scores answers as sets — multi-select needs an exact match — then swaps in a results screen with an animated SVG score ring, a pass or fail verdict, point totals, and a color-coded review list. Every question is replayed with the learner’s choice, the correct answer, and an explanation. Retake resets timer, answers, and flags. Toasts confirm flagging, time warnings, and the final result.

Illustrative UI only — fictional courses, not a real learning platform.