|
|
|
|
@ -93,12 +93,14 @@
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
<h2>Timer</h2>
|
|
|
|
|
<em>
|
|
|
|
|
{{formatTime(totalSeconds)}}
|
|
|
|
|
</em>
|
|
|
|
|
<button :disabled="running" @click="start">Start Timer</button>
|
|
|
|
|
<button :disabled="!running" @click="stop">Stop Timer</button>
|
|
|
|
|
<button :disabled="running || totalSeconds === 0" @click="reset">Reset</button>
|
|
|
|
|
<div :class="{running:running}">
|
|
|
|
|
<em>
|
|
|
|
|
{{formatTime(totalSeconds)}}
|
|
|
|
|
</em>
|
|
|
|
|
<button :disabled="running" @click="start">Start Timer</button>
|
|
|
|
|
<button :disabled="!running" @click="stop">Stop Timer</button>
|
|
|
|
|
<button :disabled="running || totalSeconds === 0" @click="reset">Reset</button>
|
|
|
|
|
</div>
|
|
|
|
|
<form @submit="submit">
|
|
|
|
|
<label>Description</label>
|
|
|
|
|
<input v-model="description" type="text"/>
|
|
|
|
|
@ -128,7 +130,7 @@ label, [type="submit"] {
|
|
|
|
|
display:block;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
details.running {
|
|
|
|
|
.running {
|
|
|
|
|
background:green;
|
|
|
|
|
}
|
|
|
|
|
button, em {
|
|
|
|
|
|