You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Putting the currentProcedure in global data, for example:
for(const[index,slide]ofdata.currentProcedure.entries()){// save slides in global data objectdata.previousSlide=data.currentProcedure[index-1];data.currentSlide=slide;data.nextSlide=data.currentProcedure[index+1];data.slideCounter++;// init default procedure responsedata.procedure[slide]={duration: 0,response: '',};// track dilemma slides// start time trackingconststartTime=newDate().getTime();// iterate through the slidesawait(awaitimport(`./${slide}`)).default();awaitsleep(config.globals.slideGapDuration);// stop audio playback if it is still playing anythingstop();// save duration of each slidedata.procedure[slide].duration=newDate().getTime()-startTime;}
You should also provide utility functions such as:
No description provided.
The text was updated successfully, but these errors were encountered: