Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
{Update Documentation.md}
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Feb 11, 2021
1 parent 1d2efb0 commit bc37cc8
Showing 1 changed file with 31 additions and 34 deletions.
65 changes: 31 additions & 34 deletions Documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ All-in-one starter app with behavioral task trials

<dl>
<dt><a href="#module_countdown">countdown</a></dt>
<dd><p>Builds a countdown transition with the given text and number of seconds.</p>
<dd><p>Builds a countdown transition with the given message and number of seconds.</p>
</dd>
<dt><a href="#module_fixation">fixation</a></dt>
<dd><p>Builds a trial with a fixation dot and optional photodiode box.</p>
</dd>
<dt><a href="#module_showImage">showImage</a></dt>
<dd><p>Builds a trial with a onscreen message, optional buttons and optional photodiode box</p>
<dd><p>Builds a trial with a onscreen message and optional photodiode box</p>
</dd>
<dt><a href="#module_showMessage">showMessage</a></dt>
<dd><p>Builds a trial with a onscreen message, optional buttons and optional photodiode box</p>
Expand All @@ -23,16 +23,16 @@ All-in-one starter app with behavioral task trials
<a name="module_countdown"></a>

## countdown
Builds a countdown transition with the given text and number of seconds.
Builds a countdown transition with the given message and number of seconds.


| Param | Type | Description |
| --- | --- | --- |
| options | <code>Object</code> | |
| options.duration | <code>number</code> | The trial duration. |
| options.text | <code>string</code> | Optional text for the countdown. (default: "") |
| options.time | <code>number</code> | The number of seconds for the countdown. (default: 10s) |
| options.responseEndsTrial | <code>boolean</code> | True if the trial ends on response, false if the trial waits for the duration. (default: false) |
| options.duration | <code>number</code> | trial duration in milliseconds. (default: 1000) |
| options.stimulus | <code>string</code> | Onscreen stimulus in HTML to be shown in the trial. If the stimulus is not provided, message should be provided as a string. (default: "") |
| options.message | <code>string</code> | (optional) message for the countdown. (default: "") |
| options.time | <code>number</code> | start number for the countdown. (default: 3) |

<a name="module_fixation"></a>

Expand All @@ -48,16 +48,15 @@ Builds a trial with a fixation dot and optional photodiode box.
| config.USE_ELECTRON | <code>boolean</code> | USE_ELECTRON flag |
| config.USE_MTURK | <code>boolean</code> | USE_MTURK flag |
| options | <code>Object</code> | |
| options.duration | <code>number</code> | The trial duration in milliseconds. |
| options.responseEndsTrial | <code>boolean</code> | True if the trial ends on response,false if the trial waits for the duration, by default false value. |
| options.taskCode | <code>number</code> | Task code to be saved into data log and for pdSpotEncode, which by default is null and is passed when config has USE_PHOTODIODE set true. |
| options.numBlinks | <code>number</code> | Number of times the pulse needs to be repeated for photodiode box, when USE_PHOTODIODE is set true. If not set, by default is 1. |
| options.buttons | <code>any</code> | This array contains the keys that the subject is allowed to press in order to respond to the stimulus. Keys can be specified as their numeric key code or as characters (e.g., 'a', 'q'). The default value of jsPsych.ALL_KEYS means that all keys will be accepted as valid responses. Specifying jsPsych.NO_KEYS will mean that no responses are allowed. |
| options.duration | <code>number</code> | trial duration in milliseconds jittered with the jitter param. (default: 1000) |
| options.jitter | <code>number</code> | jitter range (0-jitter) to add from to the trial duration (default: 50) |
| options.taskCode | <code>number</code> | Task code to be saved into data log (default: 1) |
| options.numBlinks | <code>number</code> | Number of times the pulse needs to be repeated for photodiode box, when USE_PHOTODIODE is set true. (default: 1) |

<a name="module_showImage"></a>

## showImage
Builds a trial with a onscreen message, optional buttons and optional photodiode box
Builds a trial with a onscreen message and optional photodiode box


| Param | Type | Description |
Expand All @@ -67,15 +66,14 @@ Builds a trial with a onscreen message, optional buttons and optional photodiode
| config.USE_EEG | <code>boolean</code> | USE_EEG flag |
| config.USE_ELECTRON | <code>boolean</code> | USE_ELECTRON flag |
| config.USE_MTURK | <code>boolean</code> | USE_MTURK flag |
| image | <code>string</code> | The path of the image file to be displayed. |
| options | <code>Object</code> | |
| options.responseType | <code>string</code> | This tells jsPsych which plugin file to use to run the trial. |
| options.duration | <code>number</code> | The trial duration in milliseconds. |
| options.image | <code>string</code> | The path of the image file to be displayed. |
| options.imageHeight | <code>number</code> | Set the height of the image in pixels. If left null (no value specified), then the image will display at its natural height. |
| options.imageWidth | <code>number</code> | Set the width of the image in pixels. If left null (no value specified), then the image will display at its natural width. |
| options.responseEndsTrial | <code>boolean</code> | True if the trial ends on response,false if the trial waits for the duration, by default false value. |
| options.taskCode | <code>number</code> | Task code to be saved into data log and for pdSpotEncode, which by default is null and is passed when config has USE_PHOTODIODE set true. |
| options.numBlinks | <code>number</code> | Number of times the pulse needs to be repeated for photodiode box, when USE_PHOTODIODE is set true. If not set, by default is 1. |
| options.duration | <code>number</code> | trial duration in milliseconds jittered with the jitter param. (default: 1000) |
| options.jitter | <code>number</code> | jitter range (0-jitter) to add from to the trial duration (default: 50) |
| options.imageHeight | <code>number</code> | Set the height of the image in pixels. (default: 600) |
| options.imageWidth | <code>number</code> | Set the width of the image in pixels. (default: 600) |
| options.taskCode | <code>number</code> | Task code to be saved into data log (default: 1) |
| options.numBlinks | <code>number</code> | Number of times the pulse needs to be repeated for photodiode box, when USE_PHOTODIODE is set true. (default: 1) |

<a name="module_showMessage"></a>

Expand All @@ -91,15 +89,15 @@ Builds a trial with a onscreen message, optional buttons and optional photodiode
| config.USE_ELECTRON | <code>boolean</code> | USE_ELECTRON flag |
| config.USE_MTURK | <code>boolean</code> | USE_MTURK flag |
| options | <code>Object</code> | |
| options.responseType | <code>string</code> | This tells jsPsych which plugin file to use to run the trial. |
| options.duration | <code>number</code> | The trial duration in milliseconds. |
| options.stimulus | <code>string</code> | Onscreen stimulus in HTML to be shown in the trial, if not set default text is empty. If the stimulus is not provided, message should be provided as a string. |
| options.message | <code>string</code> | Onscreen message to be shown in the trial, if not set default text is empty. |
| options.responseType | <code>string</code> | This tells jsPsych which plugin file to use to run the trial. (default: 'html_keyboard_response') |
| options.duration | <code>number</code> | trial duration in milliseconds. (default: 1000) |
| options.stimulus | <code>string</code> | Onscreen stimulus in HTML to be shown in the trial, if not set default text is empty. If the stimulus is not provided, message should be provided as a string. (default: "") |
| options.message | <code>string</code> | Onscreen message to be shown in the trial. (default: "") |
| options.onstart | <code>boolean</code> | True if the message is to be display on start of the trial. False if the message needs to be in the stimulus.(default: false) |
| options.responseEndsTrial | <code>boolean</code> | True if the trial ends on response,false if the trial waits for the duration, by default false value. |
| options.taskCode | <code>number</code> | Task code to be saved into data log and for pdSpotEncode, which by default is null and is passed when config has USE_PHOTODIODE set true. |
| options.numBlinks | <code>number</code> | Number of times the pulse needs to be repeated for photodiode box, when USE_PHOTODIODE is set true. If not set, by default is 1. |
| options.buttons | <code>Array</code> | This array contains the keys that the subject is allowed to press in order to respond to the stimulus. Keys can be specified as their numeric key code or as characters (e.g., 'a', 'q'). The default value of jsPsych.ALL_KEYS means that all keys will be accepted as valid responses. Specifying jsPsych.NO_KEYS will mean that no responses are allowed. |
| options.responseEndsTrial | <code>boolean</code> | True if the trial ends on response,false if the trial waits for the duration. (default: false) |
| options.taskCode | <code>number</code> | Task code to be saved into data log (default: 1) |
| options.numBlinks | <code>number</code> | Number of times the pulse needs to be repeated for photodiode box, when USE_PHOTODIODE is set true. (default: 1) |
| options.buttons | <code>Array</code> | This array contains the keys that the subject is allowed to press in order to respond to the stimulus. Keys can be specified as their numeric key code or as characters (e.g., 'a', 'q'). The default value of jsPsych.ALL_KEYS means that all keys will be accepted as valid responses. Specifying jsPsych.NO_KEYS will mean that no responses are allowed. (default: ["OK"]) |

<a name="module_userId"></a>

Expand All @@ -116,9 +114,8 @@ Builds a trial with set Id message and user Id input.
| config.USE_ELECTRON | <code>boolean</code> | USE_ELECTRON flag |
| config.USE_MTURK | <code>boolean</code> | USE_MTURK flag |
| options | <code>Object</code> | |
| options.duration | <code>number</code> | The trial duration in milliseconds. |
| options.stimulus | <code>string</code> | Onscreen stimulus in HTML to be shown in the trial, if not set default text is empty. If the stimulus is not provided, message should be provided as a string. |
| options.setIdMessage | <code>string</code> | Onscreen text for setting user id or for the input box to enter patient id. |
| options.responseEndsTrial | <code>boolean</code> | True if the trial ends on response,false if the trial waits for the duration, by default false value. |
| options.defaultPatientId | <code>boolean</code> | The patient id to show when requesting a patient ID, if not set default is empty. |
| options.duration | <code>number</code> | trial duration in milliseconds, when config.USE_MTURK is set to true. (default: 1000) |
| options.stimulus | <code>string</code> | Onscreen stimulus in HTML to be shown in the trial. If the stimulus is not provided, message should be provided as a string. (default: "") |
| options.setIdMessage | <code>string</code> | Onscreen text for setting user id or for the input box to enter user id. (default: "") |
| options.defaultId | <code>string</code> | The user id to show when requesting a user ID, when config.USE_MTURK is set to false.(default: "") |

0 comments on commit bc37cc8

Please sign in to comment.