jQuery away

Utils for detecting inactive clients

Functions:
$.idle()
Return idle time in seconds

$.idle(n)
Return registered callbacks for specified seconds

$.idle(n, function)
Register a callback to be run when N idle seconds occurs

$.away(message)
Mark the client as away

$.away()
Mark the client as not away

$.isAway()
Return wether the client is away or not

Similar Posts