Using JavaScript to get the current slide number
Apr 27, 2018
I know this is way out there, but I'm hoping someone knows enough about Storyline's JS to help.
Like many others, I'd like to get the current slide number within each slide so I can use it in a custom JavaScript trigger. I'm using Storyline360, so I know some previous ways of getting this are no longer possible. I'll need to implement this on at least 17 courses which have around 40 slides each, so I'd rather avoid setting up that many triggers to count the slides.
One helpful thing I've found is that each slide loads a JS file which executes the function "globalProvideData," and the second parameter in that is a JSON string which includes a property "lmsId" with the value "SlideX." Does anyone know if there's a function to access the data provided by that function? If I could get my hands on that JSON string I could figure out the rest.
As I said, it's a long shot, but I can't find anything else about getting the slide number without manually setting up triggers and variables in the project. If anyone has any advice or suggestions, I'd greatly appreciate it.
Thanks in advance!
3 Replies
Hi Michael,
Did you find a solution?
I'm sitting down to give this a go now as I need to do the same thing. I'll let you know if I get any progress.
Cheers,
Paul
Would also be interested in hearing if you figured this out. I've been unpacking their app.min.js for days :D
Alas, I'm unpacking app.min.js as well and so far no luck. Looking to keep updated on this item.
This discussion is closed. You can start a new discussion or contact Articulate Support.