Fails
Form cleared after an unstated idle time
Live preview
// Clears the application after 20 idle minutes; the page never says solet idleTimer;function restartIdleTimer() { clearTimeout(idleTimer); idleTimer = setTimeout(() => permitForm.reset(), 20 * 60 * 1000);}permitForm.addEventListener("input", restartIdleTimer);restartIdleTimer();
After 20 minutes without activity everything typed is erased, and nothing told the user that a break of that length would cost them their work.