diff --git a/examples/add-to-end-of-timeline.html b/examples/add-to-end-of-timeline.html index dc46f562..12d102d6 100644 --- a/examples/add-to-end-of-timeline.html +++ b/examples/add-to-end-of-timeline.html @@ -17,7 +17,8 @@ jsPsych.addNodeToEndOfTimeline({ timeline: [{ type: 'image-keyboard-response', - stimulus: 'img/happy_face_4.jpg' + stimulus: 'img/happy_face_4.jpg', + stimulus_width: 300 }] }, jsPsych.resumeExperiment) } diff --git a/examples/conditional-and-loop-functions.html b/examples/conditional-and-loop-functions.html index 775e81d8..6aaf91fd 100644 --- a/examples/conditional-and-loop-functions.html +++ b/examples/conditional-and-loop-functions.html @@ -10,7 +10,7 @@ var trial = { type: 'html-keyboard-response', - stimulus: 'Hello. This is in a loop. Press R to repeat this trial, or C to continue.', + stimulus: 'Hello. This is in a loop. Press "r" to repeat this trial, or "c" to continue.', choices: ['r','c'] } @@ -27,7 +27,7 @@ var pre_if_trial = { type: 'html-keyboard-response', - stimulus: 'The next trial is in a conditional statement. Press S to skip it, or V to view it.', + stimulus: 'The next trial is in a conditional statement. Press "s" to skip it, or V"vto view it.', choices: ['s','v'] } diff --git a/examples/data-add-properties.html b/examples/data-add-properties.html index 010231b2..8275772d 100644 --- a/examples/data-add-properties.html +++ b/examples/data-add-properties.html @@ -5,11 +5,6 @@ -
- - @@ -18,6 +13,7 @@ stimulus: '../img/happy_face_1.jpg', choices: ['y','n'], render_on_canvas: false, + stimulus_width: 300, prompt: 'Is this face happy? Press "y" or "n".
' } @@ -26,6 +22,7 @@ stimulus: '../img/sad_face_2.jpg', choices: ['y','n'], render_on_canvas: false, + stimulus_width: 300, prompt: 'Is this face happy? Press "y" or "n".
' } @@ -34,6 +31,7 @@ stimulus: '../img/happy_face_2.jpg', choices: ['y','n'], render_on_canvas: false, + stimulus_width: 300, prompt: 'Is this face happy? Press "y" or "n".
', } diff --git a/examples/display-element-to-embed-experiment.html b/examples/display-element-to-embed-experiment.html index 35555d1b..62aa260b 100644 --- a/examples/display-element-to-embed-experiment.html +++ b/examples/display-element-to-embed-experiment.html @@ -32,7 +32,7 @@ type: 'image-keyboard-response', stimulus: 'img/happy_face_1.jpg', choices: ['y','n'], - prompt: 'Have you seen this face before? Y or N.
', + prompt: 'Have you seen this face before? Press "y" or "n".
', stimulus_width: 300, render_on_canvas: false } @@ -42,7 +42,7 @@ stimulus: 'img/happy_face_2.jpg', choices: ['y','n'], trial_duration: 5000, - prompt: 'Have you seen this face before? Y or N. (5s time limit).
', + prompt: 'Have you seen this face before? Press "y" or "n". (5s time limit).
', stimulus_width: 300, render_on_canvas: false } @@ -56,11 +56,9 @@ } var node = { - type: 'html-keyboard-response', timeline: [trial_1, trial_2, trial_3], } - jsPsych.init({ timeline: [node], display_element: 'jspsych-experiment', diff --git a/examples/jspsych-audio-keyboard-response.html b/examples/jspsych-audio-keyboard-response.html index dc8aea05..ebd091bb 100644 --- a/examples/jspsych-audio-keyboard-response.html +++ b/examples/jspsych-audio-keyboard-response.html @@ -22,7 +22,7 @@ stimulus: 'sound/speech_blue.mp3', choices: ['y', 'n'], prompt: ''+ - 'Does the color match the word? (Y or N)
' + 'Does the color match the word? (y or n)
' } var trial_2 = { @@ -31,7 +31,7 @@ choices: ['y', 'n'], trial_duration: 5000, prompt: ''+ - 'Does the color match the word? (Y or N; 5s time limit)
' + 'Does the color match the word? (y or n; 5s time limit)
' } var trial_3 = { diff --git a/examples/jspsych-iat.html b/examples/jspsych-iat.html index 26fd0be2..21369bce 100644 --- a/examples/jspsych-iat.html +++ b/examples/jspsych-iat.html @@ -23,7 +23,7 @@ var welcome_block = { var category_block = { type: 'html-keyboard-response', - stimulus: 'Next, you will use the "E" and "I" computer keys ' + 'to categorize items into groups as fast as you can. ' + + stimulus: '
Next, you will use the "e" and "i" computer keys ' + 'to categorize items into groups as fast as you can. ' +
'These are the four groups and the items that belong to each:
' +
'Good:
' + 'Fabulous, Excitement, Glorious, Cheerful, Cherish, ' +
'Enjoy, Delightful, Joyous
' + 'Bad:
' + 'Humiliate, ' +
@@ -41,10 +41,10 @@ var category_block = {
var instructions_block = {
type: 'html-keyboard-response',
- stimulus: "
Press E for:
OLD
Press I for:
YOUNG
Press e for:
OLD
Press i for:
YOUNG
Have you seen this face before? Y or N.
' + prompt: 'Have you seen this face before? Press y or n.
' } var trial_2 = { @@ -46,7 +46,7 @@ stimulus: 'img/happy_face_2.jpg', choices: ['y','n'], trial_duration: 5000, - prompt: 'Have you seen this face before? Y or N. (5s time limit).
' + prompt: 'Have you seen this face before? Press y or n. (5s time limit).
' } var trial_3 = { @@ -63,7 +63,7 @@ choices: ['y','n'], stimulus_width: 400, maintain_aspect_ratio: false, - prompt: 'Have you seen this face before? Y or N.
(Stimulus_width set to a smaller value and maintain_aspect_ratio set to false.)
' + prompt: 'Have you seen this face before? Press y or n.
(Stimulus_width set to a smaller value and maintain_aspect_ratio set to false.)
' } jsPsych.init({ diff --git a/examples/jspsych-reconstruction.html b/examples/jspsych-reconstruction.html index bf415d07..706ab834 100644 --- a/examples/jspsych-reconstruction.html +++ b/examples/jspsych-reconstruction.html @@ -13,7 +13,7 @@ var size = 50 + Math.floor(param*250); var html = 'Press H to make the square larger. Press G to make the square smaller.
'+ + 'width: '+size+'px; height: '+size+'px;">Press "h" to make the square larger. Press "g" to make the square smaller.
'+ 'When the square is the same size as the previous one, click Next.
'; return html; } @@ -25,7 +25,7 @@ 'width: 210px; height: 210px;">Study the size of this square carefully. On the next screen you will have to recreate it. When you are ready, press C.
' + prompt: 'Study the size of this square carefully. On the next screen you will have to recreate it. When you are ready, press "c".
' } var test = { diff --git a/examples/jspsych-same-different-html.html b/examples/jspsych-same-different-html.html index 877e824e..fd7021c7 100644 --- a/examples/jspsych-same-different-html.html +++ b/examples/jspsych-same-different-html.html @@ -11,9 +11,9 @@ var trial = { type: 'same-different-html', stimuli: ['Talkative
', 'Loquacious
'], - prompt: "Press S if the words mean the same thing. Press D if they mean different things.
", - same_key: 'S', - different_key: 'D', + prompt: "Press 's' if the words mean the same thing. Press 'd' if they mean different things.
", + same_key: 's', + different_key: 'd', answer: 'same' } diff --git a/examples/jspsych-same-different-image.html b/examples/jspsych-same-different-image.html index 73fbfea3..36c2139a 100644 --- a/examples/jspsych-same-different-image.html +++ b/examples/jspsych-same-different-image.html @@ -16,9 +16,9 @@ var trial = { type: 'same-different-image', stimuli: ['img/happy_face_1.jpg', 'img/sad_face_3.jpg'], - prompt: "Press S if the faces had the same emotional expression. Press D if the faces had different emotional expressions.
", - same_key: 'S', - different_key: 'D', + prompt: "Press 's' if the faces had the same emotional expression. Press 'd' if the faces had different emotional expressions.
", + same_key: 's', + different_key: 'd', answer: 'different' } diff --git a/examples/jspsych-video-keyboard-response.html b/examples/jspsych-video-keyboard-response.html index e766cd3e..fbfcf09c 100644 --- a/examples/jspsych-video-keyboard-response.html +++ b/examples/jspsych-video-keyboard-response.html @@ -19,7 +19,7 @@ type: 'video-keyboard-response', stimulus: ['video/sample_video.mp4'], choices: ['y','n'], - prompt: 'Press Y or N', + prompt: 'Press y or n.', width: 600, //height: 600, autoplay: true, diff --git a/examples/jspsych-visual-search-circle.html b/examples/jspsych-visual-search-circle.html index fca92395..42653a5a 100644 --- a/examples/jspsych-visual-search-circle.html +++ b/examples/jspsych-visual-search-circle.html @@ -14,7 +14,7 @@ var intro = { type: 'html-keyboard-response', - stimulus: 'You will see a set of Ns on the following screens. Press J if there is a backwards N. If there is no backwards N press F.
Press any key to begin.
' + stimulus: 'You will see a set of Ns on the following screens. Press j if there is a backwards N. If there is no backwards N press f.
Press any key to begin.
' } var trial_1 = { diff --git a/examples/lexical-decision.html b/examples/lexical-decision.html index a43abd74..c26b9f3f 100644 --- a/examples/lexical-decision.html +++ b/examples/lexical-decision.html @@ -18,7 +18,7 @@ var instructions = { type: 'html-button-response', stimulus: 'Each screen will show either an English word or letters that do not form a word.
'+ - 'Press Y if the letters form a valid word.
Press N if the letters do not form a valid word.
', + 'Press y if the letters form a valid word.
Press n if the letters do not form a valid word.
', choices: ['Ready to start'] } timeline.push(instructions); @@ -111,7 +111,7 @@ "Your average correct response time for low frequency English words was "+Math.round(low_rt)+"ms.
"+ "The typical pattern of results is that people are faster to respond to high frequency (common) "+ "word than low frequency (uncommon) words.
"+ - "Press C to see the entire set of data generated by this experiment.
"; + "Press c to see the entire set of data generated by this experiment.
"; return message; diff --git a/examples/manual-preloading.html b/examples/manual-preloading.html index 1401f1e0..bfb72f3f 100644 --- a/examples/manual-preloading.html +++ b/examples/manual-preloading.html @@ -37,7 +37,7 @@ return jsPsych.randomization.sampleWithoutReplacement(images_to_preload, 1)[0]; }, choices: ['y','n'], - prompt: 'Have you seen this face before? Y or N.
', + prompt: 'Have you seen this face before? Press y or n.
', stimulus_width: 300 } diff --git a/examples/progress-bar.html b/examples/progress-bar.html index 73aed71b..ad874ec8 100644 --- a/examples/progress-bar.html +++ b/examples/progress-bar.html @@ -5,11 +5,6 @@ -