Supporting each other

Community forums

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Page Timers Longer than 20 Minutes

Page Timers Longer than 20 Minutes 4 months 1 day ago #6968

  • Calom
  • Calom's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 0
Hi,
I would like to have a page timer that lasts longer than 20 minutes...
I am using the documentation function to make a checklist for medical examinations - in the exam we have 40 minutes to complete the whole thing so I wanted to have a page timer to remind students how long they have left.
If anyone has been able to solve this problem before, any help would be much appreciated!
Thanks!

Please Inloggen or Create an account to join the conversation.

Page Timers Longer than 20 Minutes 3 months 3 weeks ago #6991

  • Fay
  • Fay's Avatar
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 177
  • Thank you received: 60
Hello
It looks like there is a maximum value set for the timer in the editor. I'll look into increasing this but in the meantime you can add the 'Script' optional property to the page and paste this code into it:
$('#x_pageTimer').remove();
x_currentPageXML.setAttribute('timer', 2400);
x_addCountdownTimer();

This overrides the value you have set in the editor. I'll admit that I haven't waited until the end of 40 mins to check the message appears at the end of the timer but it looks like it should all work correctly

Fay

Please Inloggen or Create an account to join the conversation.

  • Page:
  • 1
Moderators: alimcn
Time to create page: 0.044 seconds
Copyright © 2021 The Xerte Project.
Xerte logo Apereo logo OSI Logo

Search