Skip to content

Commit

Permalink
Merge pull request #6 from sswart/custom-time-button
Browse files Browse the repository at this point in the history
Add button for manual timer value
  • Loading branch information
rajbos committed Mar 5, 2023
2 parents afb7b0f + 0019fc4 commit 9414e93
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions index.html
Expand Up @@ -66,6 +66,10 @@
display: inline-block;
margin-bottom: 5px;
}

#manual-countdown-value {
width: 30px;
}
</style>
</head>
<body>
Expand All @@ -80,6 +84,9 @@
<button onclick="countdown(10)">00:10</button>
<button onclick="countdown(15)">00:15</button>
<button onclick="countdown(20)">00:20</button>
<span> | </span>
<input type="number" id="manual-countdown-value" min="1" max="60" value="1" />
<button onclick="countdown(document.getElementById('manual-countdown-value').value)">Set custom</button>
<br />
<span class="header">Break type:</span>
<button onclick="setBackground(0)">Break</button>
Expand Down

0 comments on commit 9414e93

Please sign in to comment.