The timer.js
is a good way to postpone some codes for some times.
bower install js-timer
npm i postpone-timer
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>
let timer = new Timer();
timer.delay(function() {
alert('Timer ended'); // The things to do after ending the time
}, 15); // 15 seconds
- EmiTis Yousefi - emitis89
This project is licensed under the MIT License