Skip to content

Commit

Permalink
Update eye-tracking-with-webgazer.html
Browse files Browse the repository at this point in the history
page demos/eye-tracking-with-webgazer broken
Uncaught ReferenceError: jsPsychHtmKeyboardResponse is not defined

refs:
- https://www.jspsych.org/7.0/demos/eye-tracking-with-webgazer.html
- https://www.jspsych.org/7.3/overview/eye-tracking/#example
  • Loading branch information
ayugioh2003 authored Oct 12, 2023
1 parent b78dcc6 commit cc3b1a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/demos/eye-tracking-with-webgazer.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
}

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>
<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>
Expand All @@ -142,7 +142,7 @@
}

var show_data = {
type: jsPsychHtmKeyboardResponse,
type: jsPsychHtmlKeyboardResponse,
stimulus: function() {
var trial_data = jsPsych.data.getLastTrialData().values();
var trial_json = JSON.stringify(trial_data, null, 2);
Expand Down

0 comments on commit cc3b1a1

Please sign in to comment.