IdleTime

Emits idle when the page has no mouse, keyboard, touch or focus activity for a set time, and reload when a hidden page is shown again

Live preview

Open in new tab ↗

This component emits event ON('idletime', function(is) {}) when the website is in idle. It reacts on mouse, keyboard, touch events or focusing of window. And the component sets Boolean according to the path with the current idle state.

Configuration:

  • count {Number} in seconds, default: 300 5 minutes)

Events:

  • ON('idletime', function(is)) is emitted if the document is idle (is=true) / active (is=false)
  • ON('reload', function() {}) is emitted if the document is transformed from invisible to visible state within config.count interval

More UI components

Browse all 348