<Paramname="Begin JS Routine"updates="constant"val="// Show webcam thumbnail and face feedback box, but not face overlay and gaze dot&#10;window.webgazer.params.showVideoPreview = true;&#10;window.webgazer.params.showFaceFeedbackBox = true;&#10;window.webgazer.params.showFaceOverlay = true;&#10;window.webgazer.params.showGazeDot = false&#10;// Start eye tracking&#10;window.webgazer&#10; // Called on each eye tracking update&#10; .setGazeListener(function(data, clock) {&#10; if (data !== null) {&#10; // Remove first element from gazes array, add current gaze at the end&#10; window.xGazes.shift();&#10; window.xGazes.push(data.x);&#10; window.yGazes.shift();&#10; window.yGazes.push(data.y);&#10; }&#10; })&#10; .begin();&#10; //.showPredictionPoints(true); &#10;"valType="extendedCode"/>
<Paramname="Begin JS Routine"updates="constant"val="// Show webcam thumbnail and face feedback box, but not face overlay and gaze dot&#10;window.webgazer.params.showVideoPreview = true;&#10;window.webgazer.params.showFaceFeedbackBox = true;&#10;window.webgazer.params.showFaceOverlay = false;&#10;window.webgazer.params.showGazeDot = false&#10;// Start eye tracking&#10;window.webgazer&#10; // Called on each eye tracking update&#10; .setGazeListener(function(data, clock) {&#10; if (data !== null) {&#10; // Remove first element from gazes array, add current gaze at the end&#10; window.xGazes.shift();&#10; window.xGazes.push(data.x);&#10; window.yGazes.shift();&#10; window.yGazes.push(data.y);&#10; }&#10; })&#10; .begin();&#10; //.showPredictionPoints(true); &#10;"valType="extendedCode"/>