TimeObserver 0.1

This Class allows you to create a site observer that fires a callback when a certain time has passed. This is usful for applications that need to fire reminders.



Details

Author
Arieh Glazer
Current version
0.1
GitHub
arieh/TimeObserver
Downloads
1154
Category
Utilities
Tags
Report
GitHub Issues

Releases


How to use

Usage is fairly simple -

var to = new TimeObserver;

var time = 6000 + +new Date();

to.addTime(time,function(){
    alert('time is near!');
});

to.start();

For more info read the docs


Discuss

A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.

Found a bug in this plugin? Please report it this repository's Github Issues.

blog comments powered by Disqus