diff --git a/site/index.html b/site/index.html index 244d56a..af2fa1c 100644 --- a/site/index.html +++ b/site/index.html @@ -15,15 +15,16 @@ +
Big scary tasks are just 5–10 small boring ones wearing a trench coat. Name the monster; we'll slice it.
@@ -80,7 +81,7 @@ -A timer for time-blind brains: you always see how much time is left, how much is gone, and what phase you're in.
@@ -128,7 +129,7 @@ -Quick, healthy mood hits so your brain stops hijacking you for worse ones. Pick how long you have.
@@ -152,7 +153,7 @@ -Not the whole task. Not the project. The next physical action your hands can actually do.
diff --git a/site/static/app.js b/site/static/app.js index 763db75..5d38732 100644 --- a/site/static/app.js +++ b/site/static/app.js @@ -371,10 +371,12 @@ timerPaint(); }); - $('#timer-reset').addEventListener('click', function () { + function timerReset() { timerStop(); timer.left = timer.total; $('#timer-start').textContent = 'start'; timerPersist(); timerPaint(); - }); + } + + $('#timer-reset').addEventListener('click', timerReset); $$('.preset').forEach(function (p) { p.addEventListener('click', function () { @@ -408,6 +410,8 @@ breakerRender(); } } + // Reset timer so it's fresh for the next step + timerReset(); // Clear one-thing and show next step prompt localStorage.removeItem('myadhd.now'); showTab('now'); diff --git a/site/sw.js b/site/sw.js index 89fa384..bde4c3c 100644 --- a/site/sw.js +++ b/site/sw.js @@ -1,11 +1,13 @@ /* myadhd.dev — service worker for offline PWA */ -var CACHE = 'myadhd-v1'; +var CACHE = 'myadhd-v2'; var ASSETS = [ '/', '/index.html', '/static/style.css', '/static/app.js', '/static/favicon.svg', + '/static/icon-192.png', + '/static/icon-512.png', '/manifest.json' ];