Explore the community Forums Lectora Lectora Questions & Answers Microsoft Surface Pro – Lectora course not working Reply To: Microsoft Surface Pro – Lectora course not working

#373844 Score: 0
Profile photo of Math Notermans
Math Notermans
Member
contributor
intermediate
advanced
friend finder
junior moderator
advocate
LUC16 Attendee
LUC16
wise owl
curious george
129 pts
@mnotermans5114

One extra tip. Add sufficient debug-code in your Javascripts so you can properly follow whats going on.

For example:

  • at pageLoad -> console.log(“the page is Loaded”);
  • when clicking the audio buttons -> console.log(“now clicked audio 1”);
  • when the audio plays -> console.log(“audio 1 is playing”);
  • on specific events on the audio -> console.log(“now reached event Blabla on audio 1”);
  • on audioended -> console.log(“audio 1 has ended”);

This way in your browser you can follow the complete process. If anything goes wrong you know exactly ( hopefully ) what and where…