Module
Focus Tracker can be installed with your choice of package manager. Then import the functions you need to get going.
- npm
- yarn
- pnpm
shell npm install @michaeldrotar/focus-tracker-js --save
shell yarn add @michaeldrotar/focus-tracker-js
shell pnpm add @michaeldrotar/focus-tracker-js
import { registerFocusTrackerConfiguration } from '@michaeldrotar/focus-tracker-js/registerFocusTrackerConfiguration'
import { startUserFocusTracker } from '@michaeldrotar/focus-tracker-js/startUserFocusTracker'
registerFocusTrackerConfiguration(document.body)
startUserFocusTracker()