Merge pull request #3150 from ayugioh2003/main

fix broken "eye-tracking-with-webgazer" demo page 

(rebased-with-history from commit cd53e7e93b)
This commit is contained in:
Josh de Leeuw 2023-10-12 14:58:40 -04:00 committed by bjoluc
commit 5ce28b34ed

View File

@ -121,7 +121,7 @@
} }
var begin = { var begin = {
type: jsPsychHtmKeyboardResponse, type: jsPsychHtmlKeyboardResponse,
stimulus: `<p>The next screen will show an image to demonstrate adding the webgazer extension to a trial.</p> stimulus: `<p>The next screen will show an image to demonstrate adding the webgazer extension to a trial.</p>
<p>Just look at the image while eye tracking data is collected. The trial will end automatically.</p> <p>Just look at the image while eye tracking data is collected. The trial will end automatically.</p>
<p>Press any key to start.</p> <p>Press any key to start.</p>
@ -142,7 +142,7 @@
} }
var show_data = { var show_data = {
type: jsPsychHtmKeyboardResponse, type: jsPsychHtmlKeyboardResponse,
stimulus: function() { stimulus: function() {
var trial_data = jsPsych.data.getLastTrialData().values(); var trial_data = jsPsych.data.getLastTrialData().values();
var trial_json = JSON.stringify(trial_data, null, 2); var trial_json = JSON.stringify(trial_data, null, 2);