UiL-OTS-labs / jspsych-spr-mw

A self paced reading with moving window experiment using jsPsych
GNU General Public License v2.0
6 stars 3 forks source link

saving data when the experiment ends, without a timeout #25

Closed bbonf closed 2 years ago

bbonf commented 2 years ago

There's one disadvantage to this change: when running the experiment offline, you don't get to see the final screen, as it will be replaced by the JSON data immediately.

maartenuni commented 2 years ago

Perhaps, when running offline we are able to conditionally insert a duplicated view of the online end screen but without uploading/displaying the data?

bbonf commented 2 years ago

Maybe it's easier to introduce a delay in uil.saveData for the offline case:

            setTimeout(() => jsPsych.data.displayData(), 3000);