A timed quiz app where anyone can build a quiz with a time limit and take it later. The countdown runs in a Web Worker so it stays accurate when the tab is in the background.
Quiz App lets anyone write a quiz with a time limit and anyone else take it before the clock runs out.
The builder sets a title, an author, and a time limit, then adds and removes questions. Each quiz gets an ID, is saved in the browser, and appears in the list of available quizzes. Taking a quiz shows the questions with a countdown, and the result is shown at the end, or when time runs out.
The countdown runs in a Web Worker instead of on the page. Browsers slow down timers in background tabs, so a quiz timed on the main thread could give someone extra time just because they switched tabs. The worker keeps ticking at the right rate either way.