"Connected at" + javascript (connection/click time, not current time)

Apr 06, 2022

Hi everybody !

I'm looking for a code but I have two problems:

1) English is not my native language and I'm not bilingual at all. 

2) Javascript is new to me.

That's why I didn't understand the topics I read about the code I'm looking for. Could you help me please ?

 

I'm working on a project about a software. When the user connects to it, the connection time appears just like this : Connected at hh:mm

So, in Storyline, I have these slides :

Slide 1 : "Click on the connection button"
Slide 2 : "You're connected! Now, you can blablablabla"
Slide 3 : the rest of the lesson

From the slide 2 to the end, I would like the time when the user clicked the button to appear.

To make it clear : if the user clik on the button on the slide 1 at 8:25 am, I would like all the other slides show "Connected at 08:25". 

Is it possible? If so, how exactly? Because everything I have seen was about current time and it's not what I want. 

Thanks for reading and sorry for my mistakes.

 

4 Replies
Walt Hamilton

You must find the current time when the learner clicks the connection button, but then you don't need to find it again. Just do as Math suggests, and place that current time into a SL variable. Then on each slide insert a reference to that variable in a text box.

If you will attach slides 1 - 3 here someone will help you.

Aurore Kervarec

Thanks for you reply.

The problem is... I don't understand what I'm supposed to do :-(.

How do I make a "calculation" in Storyline ?

How do I place the click time into a variable ? 

My slides are in french (text and voice) so I made some modifications just to illustrate what I need. I hope it will help.