Javascript on master slide not resetting

Oct 05, 2018

Hi All,

What we are trying to do is pop a layer when someone has been on a slide for X time. I have my JS on the slide master. This JS will fire when they click next. So in my head every time they click next the JS should reset and start counting from zero. So I click the first next and I see 1, 2, 3, 4... then I click next(JS should reset) I will get 1,2,5,3,6,4 then finally the layer will pop while page two has time left.

Any ideas as to why this is happening? I can post code if needed

Thanks
B

 

4 Replies
Phil Mayor

I don't think this way will work, if you open up the user.js file you will see that it has one function for every slide if this is a big course I think you are going to find this file gets too big for tablets or phones to read.

I also think that this is running multiple instances of the same function which is why your counter is going wonky. That said I don't have a solution, perhaps Michael can see one.

This discussion is closed. You can start a new discussion or contact Articulate Support.