Skip to content
A "poll-me-maybe" JavaScript library
JavaScript
Find file
Latest commit eed66d9 tbk added name to timer
Failed to load latest commit information.
dist
spec
src
.bowerrc
.coveralls.yml
.editorconfig
.gitignore
.jshintrc
.travis.yml
AUTHORS
Gruntfile.js
LICENSE
README.md
SpecRunner.html
bower.json
karma.conf.js
package.json

README.md

again.js

Build Status Coverage Status Dependency Status devDependency Status Code Climate

A "poll-me-maybe" JavaScript library

Get Started

Install dependencies

sudo npm install && bower install

Build Project

grunt

Run Tests

Open SpecRunner.html in your browser and test with jasmine

How to use

var again = Again.create({
    ...
});

again.every(function() { 
    console.log(again.state());
}, {
    'visible': 1000,
    'hidden' : 5000
});

again.update('visible');

setTimeout(function() {
    again.update('hidden');
}, 3000);

setTimeout(function() {
    again.update('visible');
}, 20000);
1000 : visible
2000 : visible
3000 : visible
8000 : hidden
13000: hidden
18000: hidden
21000: visible
22000: visible
23000: visible
...

License

The project is licensed under the MIT license. See LICENSE for details.

Something went wrong with that request. Please try again.