Skip to content

Commit 5ce6ffb

Browse files
committed
Set minimum timer duration.
1 parent 31ee1fe commit 5ce6ffb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

slides/templates/regular/index.html.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ a.anchor-link {
148148
<img alt="View repo on GitHub" src="https://img.shields.io/badge/view-repo-orange?logo=github" style="max-width: 100%; margin: 20px 0 0 0;">
149149
</a>
150150
</div>
151-
<!-- alternate clock location under title
151+
<!-- TODO: decide on a location for this; here's an alternate clock location under title
152152
<div class="clock" style="margin-right: 5px; position: absolute; top: 40px;"></div>
153153
-->
154154
<div class="clock" style="margin-right: 5px; float: right;"></div>
@@ -229,7 +229,7 @@ require(
229229
() => {
230230
const input = prompt("How many minutes?");
231231
if (input !== undefined && input !== "" && input !== null){
232-
if (!isNaN(input)) {
232+
if (!isNaN(input) && input >= 0.1) {
233233
const exerciseTime = input * 60 * 1000;
234234
const countDownTime = new Date(new Date().getTime() + exerciseTime).getTime();
235235

0 commit comments

Comments
 (0)