Skip to main content

Module

Focus Tracker can be installed with your choice of package manager. Then import the functions you need to get going.

shell npm install @michaeldrotar/focus-tracker-js --save

import { registerFocusTrackerConfiguration } from '@michaeldrotar/focus-tracker-js/registerFocusTrackerConfiguration'
import { startUserFocusTracker } from '@michaeldrotar/focus-tracker-js/startUserFocusTracker'

registerFocusTrackerConfiguration(document.body)
startUserFocusTracker()