• Register
Welcome to the in5 Answer Exchange! This a place to get answers about in5 (InDesign to HTML5) and make requests.
0 votes
Hey,

My 10 slides presentation (vertical slider) contains calculation on "slide 3"

I have append JSfunction to assets and I want to execute this function when "SLIDE 3" showup.

eg: execute "myfunction.js" whan slide 3 showup.

thanks in advance, Klemen
in how_to by (420 points)
    

1 Answer

0 votes
 
Best answer

Hi Klemen,

The following should work for you:

$(document).on('newPage', function(e, data){
     if(data.index === 2){
          //run slide 3 code here
     }
});

by (179k points)
selected by