Page 1 of 1

[rz] Idle Manager *** UPD 2017-Sep-06 ***

Posted: Tue Apr 08, 2014 2:17 pm
by [RZ]
[rz] Idle Manager v1.1

The most lightweight solution to control events when the browser enters in idle mode.

- Manage events (after and before) when the browser enters in idle mode and "wakes-up".
- Automatically turns off the light when the browser is in idle mode with a customizable dimmer.
- Smooth dimmer effect.
- Redirection support when enters in idle mode.
- Instant or delayed "wake-up" mode allows to define how the browser reacts and comes back.
- Multi-instance: allows to build "eco-friendly" sites with different idle levels.
- Lightweight: no jQuery required.
- Supports all major browsers, even really old ones! (IE5+, Chrome, Safari, Opera, Firefox and more)

DEMO

HTML 4.01 Transitional
W3C compliant


* New in version 1.1

- Custom color for the dim effect.
- Improved custom events handling.
- Optional embedded object with custom position.
- Fixed a glitch in multi-instance schemes on older browsers.
- Improved startup.

* New in version 1.0.0.3

- The core has been moved to an external file for a faster navigation between pages.
- Minor code optimizations.

* New in version 1.0.0.2

- Fixed a sporadic "false positive" warning in Internet Explorer 11 under Windows 8.1.
- Improved idle "wake-up" from within an inlineframe (the contained page must be in the same site).
- Minor code tweaks.

* New in version 1.0.0.1

- Added detection support when idle status is within an inlineframe.


How to use?

Just drag and drop the extension and optionally setup the self-explanatory properties.
If you need "deeper" idle levels, add a new instance and be sure the idle time is greater than in the previous instance.

Enjoy!

Re: Idle Manager

Posted: Wed Apr 09, 2014 7:52 am
by [RZ]
a big 'thank you' to everyone who supports my work!!
here are few samples about how to use this extension with advanced programming
(attached info file updated)

The [rz] Idle Manager is not just to fade-in and fade-out the browser! (Even you can ignore this and set the 'Dim' property to 0)
You can manage advanced tasks where bandwidth is critical, here a few samples (using the global 'is_idle' value).


1. A global case that news are updated every second

Code: Select all

setInterval(function()
{
   if (is_idle)
   {
      //
      // perhaps the user is gone...
      // so, instead of update news, let's clean up the older ones!
      //
   }
   else
   {
      //
      // the user is here and active...
      // check and update the news!
      //
   }
}, 1000);

2. A global case that news are updated every second with a multi-instance manager


in each [rz] Idle Manager instance:

- first instance: setup the idle time 60 seconds (one minute)
- second instance: setup the idle time 180 seconds (three minutes)

in your custom code section:

Code: Select all

setInterval(function()
{
   if (is_idle == 1)
   {
      //
      // perhaps the user is gone...
      // so, instead of update news, let's clean up the older ones!
      //
   }
   else if (is_idle == 2)
   {
      //
      // oops...
      // seems that the user left me alone, log him out!
      //
   }
   else
   {
      //
      // the user is here and active...
      // check and update the news!
      //
   }
}, 1000);

3. Events triggered only when the browser enters in idle mode and wakes-up


in [rz] Idle Manager, 'Events' category:

add in 'After in' property: IdleChange();
add in 'After out' property: ActiveChange();

in your custom code section:

Code: Select all

function IdleChange()
{
   //
   // this function will be executed only when the browser enters in idle mode
   //
}

function ActiveChange()
{
   //
   // this function will be executed only when the browser is back to active mode
   //
}

Re: Idle Manager

Posted: Wed Apr 09, 2014 6:38 pm
by Pascal-Gilles
Hi RZ,

Excellent! Didn't know that we could handle such behaviour, thanks!

Cheers
8)

Re: Idle Manager

Posted: Wed Apr 09, 2014 7:13 pm
by [RZ]
thank you pascal for your kind feedback
yes, it is just an example, the possibilities are almost endless

Re: [rz] Idle Manager *** UPD 2015-Feb-25 ***

Posted: Wed Feb 25, 2015 2:23 pm
by [RZ]
* New in version 1.0.0.2:

- Fixed a sporadic "false positive" warning in Internet Explorer 11 under Windows 8.1.
- Improved iddle "wake-up" from within an inlineframe (the contained page must be in the same site).
- Minor code tweaks.

* New in version 1.0.0.1:

- Added detection support when iddle status is within an inlineframe.

Re: [rz] Idle Manager *** UPD 2017-May-27 ***

Posted: Mon May 29, 2017 5:28 am
by [RZ]
* New in version 1.0.0.3

- The core has been moved to an external file for a faster navigation between pages.
- Minor code optimizations.

Re: [rz] Idle Manager *** UPD 2017-Sep-06 ***

Posted: Wed Sep 06, 2017 7:26 pm
by [RZ]
* New in version 1.1

- Custom color for the dim effect.
- Improved custom events handling.
- Optional embedded object with custom position.
- Fixed a glitch in multi-instance schemes on older browsers.
- Improved startup.

Re: [rz] Idle Manager *** UPD 2017-Sep-06 ***

Posted: Thu Sep 07, 2017 12:49 pm
by zinc
Great to see you enhancing this little beauty!!!!

Re: [rz] Idle Manager *** UPD 2017-Sep-06 ***

Posted: Thu Sep 07, 2017 1:34 pm
by [RZ]
thank you for your kind words