From d1ce8774ec3291374c222c8f64c085e3a99f6147 Mon Sep 17 00:00:00 2001 From: Joris Date: Sat, 15 May 2021 12:47:04 +0200 Subject: Add warm up --- src/view/form.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/view/form.ts') 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')) ) } -- cgit v1.2.3