j-IdleTime
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:3005 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 withinconfig.countinterval
Use it with <ui-component name="idletime">. When the component is not loaded yet, jComponent downloads it on first use from the address in DEF.fallback (the Componentator CDN by default). Author: Peter Širka. Source: the Componentator components repository, MIT license.
<ui-component name="idletime"></ui-component>
<script>
ON('idletime', function(is) {
console.log('Is idle?', is);
});
</script>