aboutsummaryrefslogtreecommitdiff
path: root/src/view/form.ts
diff options
context:
space:
mode:
authorJoris2021-05-15 12:47:04 +0200
committerJoris2021-05-15 12:47:04 +0200
commitd1ce8774ec3291374c222c8f64c085e3a99f6147 (patch)
tree3ed888c65600cfea0d56494ae35940744eba1d14 /src/view/form.ts
parent6a9f9a9f3cf547da80df973950489e343143289d (diff)
downloadtabata-d1ce8774ec3291374c222c8f64c085e3a99f6147.tar.gz
tabata-d1ce8774ec3291374c222c8f64c085e3a99f6147.tar.bz2
tabata-d1ce8774ec3291374c222c8f64c085e3a99f6147.zip
Add warm up
Diffstat (limited to 'src/view/form.ts')
-rw-r--r--src/view/form.ts13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/view/form.ts b/src/view/form.ts
index 60e5f08..0b04cfb 100644
--- a/src/view/form.ts
+++ b/src/view/form.ts
@@ -36,12 +36,13 @@ export function view(config: Config.Config, showPage: (route: Router.Route) => v
history.pushState({}, '', Router.toString(timerRoute))
showPage(timerRoute)
}},
- labelledInput('prepare', 0, config.prepare, n => { config.prepare = n; wd()}),
- labelledInput('tabatas', 1, config.tabatas, n => { config.tabatas = n; wd()}),
- labelledInput('cycles', 1, config.cycles, n => { config.cycles = n; wd()}),
- labelledInput('work', 5, config.work, n => { config.work = n; wd()}),
- labelledInput('rest', 5, config.rest, n => { config.rest = n; wd()}),
- h('div', { className: 'g-Form__Duration' }, 'duration', h('div', {}, duration)),
+ labelledInput('Warm Up', 0, config.warmup, n => { config.warmup = n; wd()}),
+ labelledInput('Tabatas', 1, config.tabatas, n => { config.tabatas = n; wd()}),
+ labelledInput('Prepare', 0, config.prepare, n => { config.prepare = n; wd()}),
+ labelledInput('Cycles', 1, config.cycles, n => { config.cycles = n; wd()}),
+ labelledInput('Work', 5, config.work, n => { config.work = n; wd()}),
+ labelledInput('Rest', 5, config.rest, n => { config.rest = n; wd()}),
+ h('div', { className: 'g-Form__Duration' }, 'Duration:', h('div', {}, duration)),
h('button', { className: 'g-Form__Start' }, 'start'))
)
}