Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Utils for detecting inactive clients
branch: master

added license

latest commit 689457a749
marco authored
Failed to load latest commit information.
.gitignore initial commit added license
jquery.away.js added license


Utils for detecting inactive clients

Usage example

setInterval(function() {
    console.log('idle time: ' + $.idle());
}, 2000);

$.idle(30, function() {
    console.log('are you there?');

$.idle(60, function() {
    console.log('going away :)');

$.idle(0, function() {
    if ($.isAway()) {
        console.log('back from away');


Released under the MIT license



Return idle time in seconds


Return registered callbacks for specified seconds

$.idle(n, function)

Register a callback to be run when N idle seconds occurs


Mark the client as away


Mark the client as not away


Return wether the client is away or not

Something went wrong with that request. Please try again.