Version: 1.85.4
OS: OS X
Two issues here. First, if I build the stroop demo, the HTML code at least opens just fine, but if I take a simple bit of my own - a very simple experiment that displays static images and collects keyboard responses, I get a syntax error in the resulting index.html inside of function trialRoutineEachFrame() Here’s a chunk of code it created:
// *key_resp_2* updates
if (t >= 0.0 && key_resp_2.status === psychoJS.NOT_STARTED) {
// keep track of start time/frame for later
key_resp_2.tStart = t; // (not accounting for frame time here)
key_resp_2.frameNStart = frameN; // exact frame index
key_resp_2.status = psychoJS.STARTED;
// keyboard checking is just starting
key_resp_2.clock.reset(); // now t=0
psychoJS.event.clearEvents({eventType:'keyboard'});
}
frameRemains = 0.0 + 2.5 - frameDur * 0.75; // most of one frame period left
if (key_resp_2.status === psychoJS.STARTED && t >= frameRemains) {
key_resp_2.status = psychoJS.STOPPED;
if (key_resp_2.status == psychoJS.STARTED) {
theseKeys = psychoJS.event.getKeys({keyList:['v', 'b', 'n']});
Hone in here at we have:
if (key_resp_2.status === psychoJS.STARTED && t >= frameRemains) {
key_resp_2.status = psychoJS.STOPPED;
if (key_resp_2.status == psychoJS.STARTED) {
which is missing a “}” and should read:
if (key_resp_2.status === psychoJS.STARTED && t >= frameRemains) {
key_resp_2.status = psychoJS.STOPPED;
}
if (key_resp_2.status == psychoJS.STARTED) {
The second issue is that in neither the stroop demo nor my own can I get the parameter dialog to have “OK” be anything but grayed out. “Cancel” at least works and … cancels.
Craig