Skip to content

Commit

Permalink
add manual increment button
Browse files Browse the repository at this point in the history
  • Loading branch information
brindy committed Jul 8, 2024
1 parent e45a22d commit 615a5b0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions features/local-storage.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,24 @@ <h3>Initial values</h3>
<button id='cleanup'>Cleanup data</button>
</p>

<p>
<button id='manual'>Manual Increment</button>
</p>

<h3>Current values</h3>
<div id='tests'>
</div>

<script>
const startButton = document.querySelector('#start');
const cleanupButton = document.querySelector('#cleanup');
const manualButton = document.querySelector('#manual');
const initialDiv = document.querySelector('#initial');
const testsDiv = document.querySelector('#tests');

startButton.addEventListener('click', () => startIncrementing());
cleanupButton.addEventListener('click', () => cleanup());
manualButton.addEventListener('click', () => tick());

initialDiv.innerHTML = countInfoAsHtml();

Expand Down

0 comments on commit 615a5b0

Please sign in to comment.