mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 19:20:55 +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'`.
|
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',
|
||||||
|
@ -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({
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user