mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 11:10:54 +00:00
fixed inconsistencies in parameter info
This commit is contained in:
parent
66ca55478e
commit
f92b9214b5
@ -12,9 +12,9 @@ stimuli | array | *undefined* | A pair of stimuli, represented as an array with
|
||||
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.
|
||||
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.
|
||||
timing_gap | 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.
|
||||
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.
|
||||
gap_duration | numeric | 500 | How long to show a blank screen in between the two stimuli.
|
||||
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).
|
||||
|
||||
|
||||
@ -43,7 +43,7 @@ key_press_stim1 | numeric | Indicates which key the subject pressed to continue.
|
||||
|
||||
```javascript
|
||||
var trial = {
|
||||
type: 'same-different',
|
||||
type: 'same-different-html',
|
||||
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>",
|
||||
same_key: 'S',
|
||||
|
@ -14,7 +14,10 @@
|
||||
prompt: "<p>Press S if the words mean the same thing. Press D if they mean different things.</p>",
|
||||
same_key: 'S',
|
||||
different_key: 'D',
|
||||
answer: 'same'
|
||||
answer: 'same',
|
||||
first_stim_duration: null,
|
||||
second_stim_duration: null,
|
||||
gap_duration: 2000
|
||||
}
|
||||
|
||||
jsPsych.init({
|
||||
|
@ -27,7 +27,7 @@ jsPsych.plugins['same-different-html'] = (function() {
|
||||
type: jsPsych.plugins.parameterType.SELECT,
|
||||
pretty_name: 'Answer',
|
||||
options: ['same', 'different'],
|
||||
default: 75,
|
||||
default: undefined,
|
||||
description: 'Either "same" or "different".'
|
||||
},
|
||||
same_key: {
|
||||
@ -46,7 +46,7 @@ jsPsych.plugins['same-different-html'] = (function() {
|
||||
type: jsPsych.plugins.parameterType.INT,
|
||||
pretty_name: 'First stimulus duration',
|
||||
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: {
|
||||
type: jsPsych.plugins.parameterType.INT,
|
||||
@ -58,7 +58,7 @@ jsPsych.plugins['same-different-html'] = (function() {
|
||||
type: jsPsych.plugins.parameterType.INT,
|
||||
pretty_name: 'Second stimulus duration',
|
||||
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: {
|
||||
type: jsPsych.plugins.parameterType.STRING,
|
||||
|
Loading…
Reference in New Issue
Block a user