1.0.0 • Published 6 years ago

postpone-timer v1.0.0

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

timer.js

The timer.js is a good way to postpone some codes for some times.

Getting Started

Add the timer.js or the timer.min.js file in your HTML.

<script src="dist/timer.min.js"></script>
<!--or-->
<script src="src/timer.js"></script>

How to use

let timer = new Timer();

timer.delay(function() {
  alert('Timer ended'); // The things to do after ending the time
}, 15); // 15 seconds 

Author

License

This project is licensed under the MIT License

1.0.0

6 years ago