The "timer.js" script in "Lesson"

The "timer.js" script in "Lesson"

autor Wendi Daniels -
Počet odpovedí: 10

Hey, it looks like there is an obsolete coding for a timer in lesson. Does anyone have enough knowledge about writing script to dust it off and get it working again? Having a timer would be great!

Priemer hodnotení : -
V odpovedi na Wendi Daniels

Re: The "timer.js" script in "Lesson"

autor Joseph Rézeau -
Obrázok: Core developers Obrázok: Particularly helpful Moodlers Obrázok: Plugin developers Obrázok: Testers Obrázok: Translators

This "obsolete" coding does not prevent the Lesson timer from working as expected, as far as I know.

Joseph

V odpovedi na Joseph Rézeau

Re: The "timer.js" script in "Lesson"

autor Wendi Daniels -
No, it doesn't. My post was not about the timer working, my post was about having the clock back, which apparently was there at one time, but is now gone. Do you know anything about this, Joseph?
V odpovedi na Wendi Daniels

Re: The "timer.js" script in "Lesson"

autor Joseph Rézeau -
Obrázok: Core developers Obrázok: Particularly helpful Moodlers Obrázok: Plugin developers Obrázok: Testers Obrázok: Translators

Wendi "...my post was about having the clock back"

Not sure what you mean.

Wikipedia says " A timer which counts upwards from zero for measuring elapsed time is often called a stopwatch; a device which counts down from a specified time interval is more usually called a timer".

As far as I know, the original "clock" that the Moodle Lesson timer is based on worked as a stopwatch. The modified "clock" works as a timer, that is to say it tells the student how much time is left for the activity. Which is what we want, no?

Joseph

V odpovedi na Joseph Rézeau

Re: The "timer.js" script in "Lesson"

autor Wendi Daniels -
Yes, Joseph, that is what I want, but as of now there is nothing to tell the student how much time remains in the lesson before they can move on. I am asking about the presence of a visual timer.
V odpovedi na Wendi Daniels

Re: The "timer.js" script in "Lesson"

autor Joseph Rézeau -
Obrázok: Core developers Obrázok: Particularly helpful Moodlers Obrázok: Plugin developers Obrázok: Testers Obrázok: Translators

The Lesson timer does work and it does tell the student how much time is remaining.

screenshot #1

screenshot #2

However it is not as efficient as the Quiz timer. The Quiz timer is updated dynamically. The Lesson timer is only updated when the student submits an answer or goes to the next page.

Having in the Lesson activity the same kind of timer as in the Quiz activity would need quite some development.

Joseph

V odpovedi na Joseph Rézeau

Re: The "timer.js" script in "Lesson"

autor Wendi Daniels -

Thank you, Joseph. I have set the time prerequisite, but I do not see the timer that you show. How do I program the lesson to show that timer?

V odpovedi na Wendi Daniels

Re: The "timer.js" script in "Lesson"

autor Mary Cooch -
Obrázok: Documentation writers Obrázok: Moodle HQ Obrázok: Particularly helpful Moodlers Obrázok: Testers Obrázok: Translators

You set a timer for a lesson in the lesson administration settings (when you set it up or edit its settings) by enabling the "Time limit" setting. So if you want lesson 2 to be available when a student has spent 20 minutes in lesson 1, then not only would you have to set the lesson prerequisite in lesson2 to be 20 minutes in lesson 1 but you could also go into lesson 1 and enable the "Time limit" setting so students can see where they are up to.

V odpovedi na Mary Cooch

Re: The "timer.js" script in "Lesson"

autor Wendi Daniels -

Unfortunately, I found that setting that time limit, as I suspected, kicks the student out of the lesson when the time is up. I wanted a time piece to show them how much more time they must spend before they are allowed to move on to the next lesson. Is there a way to do that, without kicking them out of the lesson when the clock reaches "zero"?

V odpovedi na Wendi Daniels

Re: The "timer.js" script in "Lesson"

autor Joseph Rézeau -
Obrázok: Core developers Obrázok: Particularly helpful Moodlers Obrázok: Plugin developers Obrázok: Testers Obrázok: Translators

"Is there a way to do that, without kicking them out of the lesson when the clock reaches "zero"?"

No, that would need some special development.

Joseph