fixed inconsistencies in parameter info

This commit is contained in:
Becky Gilbert 2020-10-11 10:26:10 -07:00
parent 66ca55478e
commit f92b9214b5
3 changed files with 11 additions and 8 deletions

View File

@ -12,9 +12,9 @@ stimuli | array | *undefined* | A pair of stimuli, represented as an array with
answer | string | *undefined* | Either `'same'` or `'different'`. answer | string | *undefined* | Either `'same'` or `'different'`.
same_key | numeric or string | 'Q' | The key that subjects should press to indicate that the two stimuli are the same. same_key | numeric or string | 'Q' | The key that subjects should press to indicate that the two stimuli are the same.
different_key | numeric or string | 'P' | The key that subjects should press to indicate that the two stimuli are different. different_key | numeric or string | 'P' | The key that subjects should press to indicate that the two stimuli are different.
timing_first_stim | numeric | 1000 | How long to show the first stimulus for in milliseconds. If the value of this parameter is null then the stimulus will be shown until the subject presses any key. first_stim_duration | numeric | 1000 | How long to show the first stimulus for in milliseconds. If the value of this parameter is null then the stimulus will be shown until the subject presses any key.
timing_gap | numeric | 500 | How long to show a blank screen in between the two stimuli. gap_duration | numeric | 500 | How long to show a blank screen in between the two stimuli.
timing_second_stim | numeric | 1000 | How long to show the second stimulus for in milliseconds. If the value of this parameter is null then the stimulus will be shown until the subject responds. second_stim_duration | numeric | 1000 | How long to show the second stimulus for in milliseconds. If the value of this parameter is null then the stimulus will be shown until the subject responds.
prompt | string | null | This string can contain HTML markup. Any content here will be displayed below the stimulus. The intention is that it can be used to provide a reminder about the action the subject is supposed to take (e.g., which key to press). prompt | string | null | This string can contain HTML markup. Any content here will be displayed below the stimulus. The intention is that it can be used to provide a reminder about the action the subject is supposed to take (e.g., which key to press).
@ -43,7 +43,7 @@ key_press_stim1 | numeric | Indicates which key the subject pressed to continue.
```javascript ```javascript
var trial = { var trial = {
type: 'same-different', type: 'same-different-html',
stimuli: ['<p>Climbing</p>', '<p>Walking</p>'], stimuli: ['<p>Climbing</p>', '<p>Walking</p>'],
prompt: "<p>Press S if the texts imply the same amount of physical exertion. Press D if the texts imply different amount of physical exertion.</p>", prompt: "<p>Press S if the texts imply the same amount of physical exertion. Press D if the texts imply different amount of physical exertion.</p>",
same_key: 'S', same_key: 'S',

View File

@ -14,7 +14,10 @@
prompt: "<p>Press S if the words mean the same thing. Press D if they mean different things.</p>", prompt: "<p>Press S if the words mean the same thing. Press D if they mean different things.</p>",
same_key: 'S', same_key: 'S',
different_key: 'D', different_key: 'D',
answer: 'same' answer: 'same',
first_stim_duration: null,
second_stim_duration: null,
gap_duration: 2000
} }
jsPsych.init({ jsPsych.init({

View File

@ -27,7 +27,7 @@ jsPsych.plugins['same-different-html'] = (function() {
type: jsPsych.plugins.parameterType.SELECT, type: jsPsych.plugins.parameterType.SELECT,
pretty_name: 'Answer', pretty_name: 'Answer',
options: ['same', 'different'], options: ['same', 'different'],
default: 75, default: undefined,
description: 'Either "same" or "different".' description: 'Either "same" or "different".'
}, },
same_key: { same_key: {
@ -46,7 +46,7 @@ jsPsych.plugins['same-different-html'] = (function() {
type: jsPsych.plugins.parameterType.INT, type: jsPsych.plugins.parameterType.INT,
pretty_name: 'First stimulus duration', pretty_name: 'First stimulus duration',
default: 1000, default: 1000,
description: 'How long to show the first stimulus for in milliseconds.' description: 'How long to show the first stimulus for in milliseconds. If null, then the stimulus will remain on the screen until any keypress is made.'
}, },
gap_duration: { gap_duration: {
type: jsPsych.plugins.parameterType.INT, type: jsPsych.plugins.parameterType.INT,
@ -58,7 +58,7 @@ jsPsych.plugins['same-different-html'] = (function() {
type: jsPsych.plugins.parameterType.INT, type: jsPsych.plugins.parameterType.INT,
pretty_name: 'Second stimulus duration', pretty_name: 'Second stimulus duration',
default: 1000, default: 1000,
description: 'How long to show the second stimulus for in milliseconds.' description: 'How long to show the second stimulus for in milliseconds. If null, then the stimulus will remain on the screen until any keypress is made.'
}, },
prompt: { prompt: {
type: jsPsych.plugins.parameterType.STRING, type: jsPsych.plugins.parameterType.STRING,