A "poll-me-maybe" JavaScript library
Install dependencies
sudo npm install && bower install
Build Project
grunt
Run Tests
Open SpecRunner.html
in your browser and test with jasmine
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
...
The project is licensed under the MIT license. See LICENSE for details.