Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add manual increment button #216

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading