Skip to content

Commit

Permalink
add manual increment button (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
brindy authored Jul 8, 2024
1 parent e45a22d commit af4c09f
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 af4c09f

Please sign in to comment.