Open ghost opened 4 years ago
I have the 'idleTimeoutInSeconds' set to -1, however this doesn't seem to have an effect.
TimeMe.initialize({ currentPageName: "live.php", // current page idleTimeoutInSeconds: -1 // seconds }); setInterval(function(){ var timeSpentOnPage = TimeMe.getTimeOnCurrentPageInSeconds(); console.log(timeSpentOnPage); $.post( "record.php", { uuid: "<?php echo $uuid; ?>", time: timeSpentOnPage, page: 'live.php' } ); }, 1000);
Otherwise, script runs fine.
I have the 'idleTimeoutInSeconds' set to -1, however this doesn't seem to have an effect.
Otherwise, script runs fine.