mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 11:10:54 +00:00
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:
commit
5ce28b34ed
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user