Responsive and Non-Responsive Differences?
Captivate 9.0.0.223
I have a responsive project which uses JS and works fine. When I preview the project, I get the options:
- Play Slide
- From this Slide
- Next 5 Slides
- Project
- Preview in SCORM Cloud
- In Adobe Edge Inspect
I use "From this Slide" and the project (along with all the JS) works fine.
On my non-responsive project, I get these bonus options:
- In Browser
- HTML5 in Browser
However, when I choose "From this Slide", a box pops up telling me "JavaScript is executed at this point in the project. To preview, use a web browser."
Then I tried "In Browser", and nothing happens when I click the button with JS (exact same JS code as the working responsive project).
Then I tried "HTML5 in Browser", and the loading circle spins indefinitely.
Code:
window.cpAPIInterface.setVariableValue("Score", "0");
if (Math.floor(Math.random() * 2) < 1) {
window.cpCmndGotoSlide = 3;
}
else {
window.cpCmndGotoSlide = 4;
}
