Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 650 Bytes

README.md

File metadata and controls

41 lines (29 loc) · 650 Bytes

timer.js

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

Instalation

bower

bower install js-timer

npm

npm i postpone-timer

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