Skip to content

YasnaTeam/timer.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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