Home > @world-wide-lab/integration-jspsych > jsPsychWorldWideLab
jsPsychWorldWideLab class
A simple integration of World-Wide-Lab for jsPsych. This plugin makes it easy to either automatically store data from any experiment running in jsPsych, which can then be neatly downloaded via the World-Wide-Lab UI.
Signature:
declare class jsPsychWorldWideLab implements JsPsychPlugin<PluginInfo>
Implements: JsPsychPlugin<PluginInfo>
Constructors
Constructor | Modifiers | Description |
---|---|---|
Constructs a new instance of the |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
| World-Wide-Lab Client instance. | ||
| boolean | Whether the client has finished initializing and creating a Session to store data. | |
| The active Session instance. | ||
| string | The studyId of the Study in which the data should be stored |
Methods
Method | Modifiers | Description |
---|---|---|
| Delete the stored participant Id from the participant's browser (if there is one). | |
| Check whether the participant Id is stored in the participant's browser. | |
| Initialize JsPsych with the World-Wide-Lab integration. | |
| Finish the experiment and mark the Session as finished. | |
| Save a response to World-Wide-Lab. | |
| Setup the World-Wide-Lab JsPsych Integration. Either this function or jsPsychWorldWideLab.initJsPsych() must be called before any data can be stored. | |
| Wait for setup to be completed. Note that this function does *not* call the setup function, it just waits for it. | |
| Store the participant Id in the participant's browser. Depending on the browser configuration, this is not always possible. |