slice(0,6) = 0:6

parent a7077f07
......@@ -150,7 +150,7 @@ async function experimentInit() {
instructions = new visual.TextStim({
win: psychoJS.window,
name: 'instructions',
text: '',
text: (("This experiment uses an n-back paradigm. \n\nYou will be shown 100 words.\n\nPress the \"S\" key if the word is the same as the word you saw " + nback.toString()) + " words ago, or the \"D\" key if it is different.\n\nPress the space bar instead of \"S\" or \"D\" if you see an animal word.\n\nPress the space bar to continue"),
font: 'Arial',
units: 'norm',
pos: [0, 0], height: 0.1, wrapWidth: 1.5, ori: 0,
......@@ -355,7 +355,6 @@ function startRoutineBegin(snapshot) {
frameN = -1;
continueRoutine = true; // until we're told otherwise
// update component parameters for each repeat
instructions.setText('"This experiment uses an n-back paradigm. /n/nYou will be shown 100 words./n/nPress the /"S/" key if the word is the same as the word you saw "+str($nback)+" words ago, or the /"D/" key if it is different./n/nPress the space bar instead of /"S/" or /"D/" if you see an animal word./n/nPress the space bar to continue"');
instructions_key.keys = undefined;
instructions_key.rt = undefined;
_instructions_key_allKeys = [];
......@@ -469,7 +468,7 @@ function target_loopLoopBegin(target_loopLoopScheduler, snapshot) {
psychoJS: psychoJS,
nReps: 1, method: TrialHandler.Method.RANDOM,
extraInfo: expInfo, originPath: undefined,
trialList: TrialHandler.importConditions(psychoJS.serverManager, 'WORDS FOR EXPERIMENT.xlsx', slice(0, 6)),
trialList: TrialHandler.importConditions(psychoJS.serverManager, 'WORDS FOR EXPERIMENT.xlsx', '0:6'),
seed: undefined, name: 'target_loop'
});
psychoJS.experiment.addLoop(target_loop); // add the loop to the experiment
......
......@@ -158,7 +158,7 @@ async function experimentInit() {
instructions = new visual.TextStim({
win: psychoJS.window,
name: 'instructions',
text: '',
text: (("This experiment uses an n-back paradigm. \n\nYou will be shown 100 words.\n\nPress the \"S\" key if the word is the same as the word you saw " + nback.toString()) + " words ago, or the \"D\" key if it is different.\n\nPress the space bar instead of \"S\" or \"D\" if you see an animal word.\n\nPress the space bar to continue"),
font: 'Arial',
units: 'norm',
pos: [0, 0], height: 0.1, wrapWidth: 1.5, ori: 0,
......@@ -362,7 +362,6 @@ function startRoutineBegin(snapshot) {
frameN = -1;
continueRoutine = true; // until we're told otherwise
// update component parameters for each repeat
instructions.setText('"This experiment uses an n-back paradigm. /n/nYou will be shown 100 words./n/nPress the /"S/" key if the word is the same as the word you saw "+str($nback)+" words ago, or the /"D/" key if it is different./n/nPress the space bar instead of /"S/" or /"D/" if you see an animal word./n/nPress the space bar to continue"');
instructions_key.keys = undefined;
instructions_key.rt = undefined;
_instructions_key_allKeys = [];
......@@ -475,7 +474,7 @@ function target_loopLoopBegin(target_loopLoopScheduler, snapshot) {
psychoJS: psychoJS,
nReps: 1, method: TrialHandler.Method.RANDOM,
extraInfo: expInfo, originPath: undefined,
trialList: TrialHandler.importConditions(psychoJS.serverManager, 'WORDS FOR EXPERIMENT.xlsx', slice(0, 6)),
trialList: TrialHandler.importConditions(psychoJS.serverManager, 'WORDS FOR EXPERIMENT.xlsx', '0:6'),
seed: undefined, name: 'target_loop'
});
psychoJS.experiment.addLoop(target_loop); // add the loop to the experiment
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment