Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

theborakompanioni/againjs

Repository files navigation

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.

About

A "poll-me-maybe" JavaScript library

Resources

License

Stars

Watchers

Forks

Packages

No packages published