AI Tap Switch Cheat Detection - 27/04/2026 07:30 EDT

Заказчик: AI | Опубликовано: 27.04.2026

I need a lightweight, browser-based module that plugs into an existing online-exam platform and raises an instant “Tap Switching Warning ⚠️” whenever a test-taker leaves, minimises, or shifts focus away from the exam tab. The chosen path is AI-based monitoring, but for this task I only care about accurately detecting and flagging tab-switch behaviour; no facial recognition, eye-tracking, or audio analysis is required. Your solution should watch real-time browser activity (focus/visibility events, window blur, URL changes, shortcut keys such as Alt-Tab or Cmd-Tab) and trigger a visual and loggable warning the moment a user attempts to navigate elsewhere. I’d like clean, well-commented JavaScript (vanilla or TypeScript) that I can drop into an HTML page or bundle with React. Please expose a simple callback so my platform can receive events and store them in our database, and include a small demo page showing the alert in action. Acceptance criteria • Detects every focus loss or tab switch during an active exam session. • Displays the “Tap Switching Warning ⚠️” overlay instantly and removes it on return. • Emits a structured JSON event (timestamp, user ID placeholder, event type) that I can capture. • Works on the latest versions of Chrome, Edge, Firefox, and Safari with no additional plugins. Let me know any clarifying questions and the estimated turnaround time, and I’ll get you access to the staging environment for final testing.