Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yasnateam/timer.js


https://github.com/yasnateam/timer.js

Last synced: 9 days ago
JSON representation

Awesome Lists containing this project

README

        

# 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.

```html

```
## How to use

```js
let timer = new Timer();

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

## Author

* **EmiTis Yousefi** - [emitis89](https://github.com/emitis89)

## License

This project is licensed under the MIT License