Timer Issue in a block | XM Community
Skip to main content
Question

Timer Issue in a block

  • February 15, 2021
  • 1 reply
  • 3 views

I have timed a block for 20 minutes for a quiz section. But if a student finishes the test before the 20 minutes of time. The timer stills runs in the background. Is there a way I could stop the timer if the student moves out of the block? I look forward to any help.

1 reply

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • February 15, 2021

Assuming your timer is using setInterval(), use clearInterval().