A gauge and a task

meter measures something within a known range. progress reports how much of a task is done.

What this browser supports

meter
checking…
progress
checking…
:indeterminate on progress
checking…

1. Nine meters, one set of thresholds

Every meter has min="0" max="100" low="30" high="70". That cuts the range into a low region (below 30), a middle region and a high region (above 70). optimum says which region is good; the browser colors the others as worse, and the region farthest from the optimum as worst.

optimum value 15 (low) value 50 (middle) value 90 (high)
10: low is good (errors) 15 of 100 50 of 100 90 of 100
50: middle is good (humidity) 15% 50% 90%
90: high is good (battery) 15% 50% 90%

2. Determinate and indeterminate progress

The first bar has value="3" max="10". The second has no value at all, which makes it indeterminate: work is happening, amount unknown.

3 of 10

Waiting…

3. A task that runs

Start begins with an indeterminate bar (connecting), then sets value as the pretend work completes. Only this part needs script, because only script knows how far the work has got.

0%