mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-12 16:48:12 +00:00
Deployed e35366e6
to 7.0 with MkDocs 1.2.2 and mike 1.0.1
This commit is contained in:
parent
e2cd2f11a2
commit
f42ed8185c
@ -1845,7 +1845,7 @@
|
||||
<h3 id="optional-methods">Optional methods<a class="headerlink" href="#optional-methods" title="Permanent link">¶</a></h3>
|
||||
<p>The extension can also include any additional methods that are necessary for interacting with it. See the <a href="../../extensions/jspsych-ext-webgazer/">webgazer extension</a> for an example.</p>
|
||||
<h2 id="advice-for-writing-extensions">Advice for writing extensions<a class="headerlink" href="#advice-for-writing-extensions" title="Permanent link">¶</a></h2>
|
||||
<p>If you are developing an extension with the aim of including it in the main jsPsych repository we encourage you to follow the <a href="contributing/#contributing-to-the-codebase">contribution guidelines</a>. </p>
|
||||
<p>If you are developing an extension with the aim of including it in the main jsPsych repository we encourage you to follow the <a href="../contributing/#contributing-to-the-codebase">contribution guidelines</a>. </p>
|
||||
<p>In general, extensions should be able to work with any plugin. They should make very few assumptions about what the DOM will contain beyond the container elements generated by jsPsych. If you are making an extension targeted at one or a small number of specific plugins, consider modifying the plugin code instead.</p>
|
||||
|
||||
|
||||
|
@ -1853,8 +1853,8 @@
|
||||
<span class="p">}</span>
|
||||
</code></pre></div>
|
||||
<h3 id="responding-to-keyboard-events">Responding to keyboard events<a class="headerlink" href="#responding-to-keyboard-events" title="Permanent link">¶</a></h3>
|
||||
<p>While the plugin framework allows you to set up any events that you would like to, including normal handling of <code>keyup</code> or <code>keydown</code> events, the <code>jsPsych.pluginAPI</code> module contains the <a href="../reference/jspsych-pluginAPI/#jspsychpluginapigetkeyboardresponse"><code>getKeyboardResponse</code> function</a>, which implements some additional helpful functionality for key responses in an experiment.</p>
|
||||
<p>Here's a basic example. See the <a href="../reference/jspsych-pluginAPI/#jspsychpluginapigetkeyboardresponse"><code>getKeyboardResponse</code> docs</a> for additional examples.</p>
|
||||
<p>While the plugin framework allows you to set up any events that you would like to, including normal handling of <code>keyup</code> or <code>keydown</code> events, the <code>jsPsych.pluginAPI</code> module contains the <a href="../../reference/jspsych-pluginAPI/#jspsychpluginapigetkeyboardresponse"><code>getKeyboardResponse</code> function</a>, which implements some additional helpful functionality for key responses in an experiment.</p>
|
||||
<p>Here's a basic example. See the <a href="../../reference/jspsych-pluginAPI/#jspsychpluginapigetkeyboardresponse"><code>getKeyboardResponse</code> docs</a> for additional examples.</p>
|
||||
<div class="highlight"><pre><span></span><code><span class="nx">trial</span><span class="p">(</span><span class="nx">display_element</span><span class="p">,</span> <span class="nx">trial</span><span class="p">){</span>
|
||||
<span class="c1">// show image</span>
|
||||
<span class="nx">display_element</span><span class="p">.</span><span class="nx">innerHTML</span> <span class="o">=</span> <span class="sb">`<img src="</span><span class="si">${</span><span class="nx">trial</span><span class="p">.</span><span class="nx">image</span><span class="si">}</span><span class="sb">"></img>`</span><span class="p">;</span>
|
||||
@ -1903,7 +1903,7 @@
|
||||
<span class="p">}</span>
|
||||
</code></pre></div>
|
||||
<h3 id="save-data">Save data<a class="headerlink" href="#save-data" title="Permanent link">¶</a></h3>
|
||||
<p>To write data to <a href="../reference/jspsych-data/#datacollection">jsPsych's data collection</a> pass an object of data as the parameter to <code>jsPsych.finishTrial()</code>.</p>
|
||||
<p>To write data to <a href="../../reference/jspsych-data/#datacollection">jsPsych's data collection</a> pass an object of data as the parameter to <code>jsPsych.finishTrial()</code>.</p>
|
||||
<div class="highlight"><pre><span></span><code><span class="nx">constructor</span><span class="p">(</span><span class="nx">jsPsych</span><span class="p">){</span>
|
||||
<span class="k">this</span><span class="p">.</span><span class="nx">jsPsych</span> <span class="o">=</span> <span class="nx">jsPsych</span><span class="p">;</span>
|
||||
<span class="p">}</span>
|
||||
@ -1917,9 +1917,9 @@
|
||||
<span class="k">this</span><span class="p">.</span><span class="nx">jsPsych</span><span class="p">.</span><span class="nx">finishTrial</span><span class="p">(</span><span class="nx">data</span><span class="p">);</span>
|
||||
<span class="p">}</span>
|
||||
</code></pre></div>
|
||||
<p>The data recorded will be that <code>correct</code> is <code>true</code> and that <code>rt</code> is <code>350</code>. <a href="../overview/plugins/#data-collected-by-all-plugins">Additional data for the trial</a> will also be collected automatically.</p>
|
||||
<p>The data recorded will be that <code>correct</code> is <code>true</code> and that <code>rt</code> is <code>350</code>. <a href="../../overview/plugins/#data-collected-by-all-plugins">Additional data for the trial</a> will also be collected automatically.</p>
|
||||
<h2 id="advice-for-writing-plugins">Advice for writing plugins<a class="headerlink" href="#advice-for-writing-plugins" title="Permanent link">¶</a></h2>
|
||||
<p>If you are developing a plugin with the aim of including it in the main jsPsych repository we encourage you to follow the <a href="contributing/#contributing-to-the-codebase">contribution guidelines</a>. </p>
|
||||
<p>If you are developing a plugin with the aim of including it in the main jsPsych repository we encourage you to follow the <a href="../contributing/#contributing-to-the-codebase">contribution guidelines</a>. </p>
|
||||
<p>We also recommend that you make your plugin <em>as general as possible</em>. Consider using parameters to give the user of the plugin as many options for customization as possible. For example, if you have any text that displays in the plugin including things like button labels, implement the text as a parameter. This allows users running experiments in other languages to replace text values as needed.</p>
|
||||
|
||||
|
||||
|
@ -1691,7 +1691,7 @@ Instead, it can be found on the jsdelivr.net CDN at: "https://cdn.jsdelivr.net/g
|
||||
<p class="admonition-title">Note</p>
|
||||
</div>
|
||||
<p>A copy of our forked <code>webgazer.js</code> file is also included in the jsPsych release, in the <code>/examples/js/webgazer</code> folder.
|
||||
So if you prefer to download and host all of your jsPsych files (i.e. <a href="../tutorials/hello-world/#option-2-download-and-host-jspsych">set-up option 2</a> in the Hello World tutorial), then another option is to load that file rather than using the jsdelivr link above.
|
||||
So if you prefer to download and host all of your jsPsych files (i.e. <a href="../../tutorials/hello-world/#option-2-download-and-host-jspsych">set-up option 2</a> in the Hello World tutorial), then another option is to load that file rather than using the jsdelivr link above.
|
||||
Assuming you downloaded the release and copied the <code>webgazer.js</code> file into a folder called <code>js/webgazer</code> in your root project directory, then you would load the file like this:
|
||||
<div class="highlight"><pre><span></span><code><span class="p"><</span><span class="nt">script</span> <span class="na">src</span><span class="o">=</span><span class="s">"js/webgazer/webgazer.js"</span><span class="p">></</span><span class="nt">script</span><span class="p">></span>
|
||||
</code></pre></div></p>
|
||||
|
@ -1607,7 +1607,7 @@
|
||||
<h1 id="intergrating-with-prolific">Intergrating with Prolific<a class="headerlink" href="#intergrating-with-prolific" title="Permanent link">¶</a></h1>
|
||||
<p><a href="https://www.prolific.co/?ref=5JCXZPVU">Prolific</a> is a participant recruitment service aimed at research. Integrating a jsPsych experiment with Prolific requires capturing the participant's ID and sending the participant to a completion URL at the end of the experiment.</p>
|
||||
<h2 id="capturing-the-participant-id-study-id-and-session-id">Capturing the Participant ID, Study ID, and Session ID<a class="headerlink" href="#capturing-the-participant-id-study-id-and-session-id" title="Permanent link">¶</a></h2>
|
||||
<p>When creating a study on Prolific you must provide the URL to your study. You can host your jsPsych experiment however you'd like - some options are discussed in the <a href="running-experiments/#hosting-the-experiment-and-saving-the-data">Running Experiments</a> documentation page. Once you've got a URL to your experiment, you can enter that in the <em>study link</em> section of Prolific. Then, click the option to record Prolific IDs via URL parameters.</p>
|
||||
<p>When creating a study on Prolific you must provide the URL to your study. You can host your jsPsych experiment however you'd like - some options are discussed in the <a href="../running-experiments/#hosting-the-experiment-and-saving-the-data">Running Experiments</a> documentation page. Once you've got a URL to your experiment, you can enter that in the <em>study link</em> section of Prolific. Then, click the option to record Prolific IDs via URL parameters.</p>
|
||||
<p><img alt="Prolific screenshot" src="../../img/prolific-study-link.png" /></p>
|
||||
<p>This will append information about the participant's prolific ID (<code>PROLIFIC_PID</code>), the study's ID (<code>STUDY_ID</code>), and the session ID (<code>SESSION_ID</code>) to the URL that participants use to access your experiment. </p>
|
||||
<p>We can capture these variables with jsPsych, and add them to jsPsych's data. This can be done anywhere in your code. This code does not need to run as part of your experiment timeline.</p>
|
||||
@ -1637,7 +1637,7 @@
|
||||
<p>You can accomplish this in a couple different ways.</p>
|
||||
<div class="admonition warning">
|
||||
<p class="admonition-title">Warning</p>
|
||||
<p>It's important that you've saved all the data from your experiment before the participant returns to Prolific. Make sure that any server communication has completed prior to redirecting the participant. One way to do this is by using the async features of the <code>call-function</code> plugin (<a href="../plugins/jspsych-call-function/#async-function-call">example</a>).</p>
|
||||
<p>It's important that you've saved all the data from your experiment before the participant returns to Prolific. Make sure that any server communication has completed prior to redirecting the participant. One way to do this is by using the async features of the <code>call-function</code> plugin (<a href="../../plugins/jspsych-call-function/#async-function-call">example</a>).</p>
|
||||
</div>
|
||||
<h3 id="participant-clicks-a-link">Participant clicks a link<a class="headerlink" href="#participant-clicks-a-link" title="Permanent link">¶</a></h3>
|
||||
<p>One option is to create a trial that contains a link that the participant clicks to end the experiment and return to Prolific. For example, the <code>html-keyboard-response</code> plugin can be used to display text that includes a link. This could go on a debriefing page.</p>
|
||||
|
@ -1643,7 +1643,7 @@
|
||||
<span class="nx">stimulus</span><span class="o">:</span> <span class="s1">'<p style="font-size:30px;color:red;">hello world!</p>'</span>
|
||||
<span class="p">}</span>
|
||||
</code></pre></div>
|
||||
<p>You can also use a <a href="dynamic-parameters">dynamic parameter</a> to combine inline CSS and trial-specific variables. This allows you to easily apply the same inline CSS to multiple trials. Here's an example using a dynamic stimulus parameter and [timeline variables]timeline/#timeline-variables):</p>
|
||||
<p>You can also use a <a href="dynamic-parameters">dynamic parameter</a> to combine inline CSS and trial-specific variables. This allows you to easily apply the same inline CSS to multiple trials. Here's an example using a dynamic stimulus parameter and <a href="../timeline/#timeline-variables">timeline variables</a>:</p>
|
||||
<div class="highlight"><pre><span></span><code><span class="kd">var</span> <span class="nx">trial</span> <span class="o">=</span> <span class="p">{</span>
|
||||
<span class="nx">type</span><span class="o">:</span> <span class="nx">jsPsychHtmlKeyboardResponse</span><span class="p">,</span>
|
||||
<span class="nx">stimulus</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
|
||||
@ -1749,7 +1749,7 @@
|
||||
<span class="c1">// ...</span>
|
||||
<span class="p"></</span><span class="nt">script</span><span class="p">></span>
|
||||
</code></pre></div>
|
||||
<p>You may want the <code>css_classes</code> parameter to vary across trials. If so, you can turn it into a <a href="dynamic-parameters">dynamic parameter</a> or use <a href="timeline/#timeline-variables">timeline variables</a> (see examples below). </p>
|
||||
<p>You may want the <code>css_classes</code> parameter to vary across trials. If so, you can turn it into a <a href="dynamic-parameters">dynamic parameter</a> or use <a href="../timeline/#timeline-variables">timeline variables</a> (see examples below). </p>
|
||||
<p>One thing to note about the <code>css_classes</code> parameter is that it only adds the class(es) to the jspsych-content <div> element, which is the "parent" element that contains all of the experiment content. Often you'll want your CSS rules to be applied to other elements <em>inside</em> of this jspsych-content div. Sometimes your CSS rules will be "inherited" by all of the other jsPsych content inside of this parent <div>. For instance, in the <code>fixation</code> example above, the CSS rules that change the font size, weight and color are applied to the parent <div> and automatically passed on to the stimulus text through inheritance.</p>
|
||||
<p>There are two reasons why a CSS rule like the one above for <code>fixation</code> may not work the way you expect:</p>
|
||||
<ol>
|
||||
|
@ -2123,7 +2123,7 @@ The function must return an array that specifies the order of the trials, e.g.,
|
||||
<h2 id="looping-timelines">Looping timelines<a class="headerlink" href="#looping-timelines" title="Permanent link">¶</a></h2>
|
||||
<p>Any timeline can be looped using the <code>loop_function</code> option.
|
||||
The loop function must be a function that evaluates to <code>true</code> if the timeline should repeat, and <code>false</code> if the timeline should end. It receives a single parameter, named <code>data</code> by convention.
|
||||
This parameter will be the <a href="../reference/jspsych-data/#datacollection">DataCollection object</a> with all of the data from the trials executed in the last iteration of the timeline.
|
||||
This parameter will be the <a href="../../reference/jspsych-data/#datacollection">DataCollection object</a> with all of the data from the trials executed in the last iteration of the timeline.
|
||||
The loop function will be evaluated after the timeline is completed.</p>
|
||||
<div class="highlight"><pre><span></span><code><span class="kd">var</span> <span class="nx">trial</span> <span class="o">=</span> <span class="p">{</span>
|
||||
<span class="nx">type</span><span class="o">:</span> <span class="nx">jsPsychHtmlKeyboardResponse</span><span class="p">,</span>
|
||||
|
@ -1581,7 +1581,7 @@
|
||||
<h1 id="jspsych-animation">jspsych-animation<a class="headerlink" href="#jspsych-animation" title="Permanent link">¶</a></h1>
|
||||
<p>This plugin displays a sequence of images at a fixed frame rate. The sequence can be looped a specified number of times. The subject is free to respond at any point during the animation, and the time of the response is recorded.</p>
|
||||
<h2 id="parameters">Parameters<a class="headerlink" href="#parameters" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -1637,7 +1637,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="data-generated">Data Generated<a class="headerlink" href="#data-generated" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -1581,10 +1581,10 @@
|
||||
<h1 id="jspsych-audio-button-response">jspsych-audio-button-response<a class="headerlink" href="#jspsych-audio-button-response" title="Permanent link">¶</a></h1>
|
||||
<p>This plugin plays audio files and records responses generated with a button click.</p>
|
||||
<p>If the browser supports it, audio files are played using the WebAudio API. This allows for reasonably precise timing of the playback. The timing of responses generated is measured against the WebAudio specific clock, improving the measurement of response times. If the browser does not support the WebAudio API, then the audio file is played with HTML5 audio. </p>
|
||||
<p>Audio files can be automatically preloaded by jsPsych using the <a href="../jspsych-preload/"><code>preload</code> plugin</a>. However, if you are using timeline variables or another dynamic method to specify the audio stimulus, you will need to <a href="../overview/media-preloading/#manual-preloading">manually preload</a> the audio.</p>
|
||||
<p>Audio files can be automatically preloaded by jsPsych using the <a href="../jspsych-preload/"><code>preload</code> plugin</a>. However, if you are using timeline variables or another dynamic method to specify the audio stimulus, you will need to <a href="../../overview/media-preloading/#manual-preloading">manually preload</a> the audio.</p>
|
||||
<p>The trial can end when the subject responds, when the audio file has finished playing, or if the subject has failed to respond within a fixed length of time. You can also prevent a button response from being made before the audio has finished playing.</p>
|
||||
<h2 id="parameters">Parameters<a class="headerlink" href="#parameters" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -1658,7 +1658,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="data-generated">Data Generated<a class="headerlink" href="#data-generated" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -1581,10 +1581,10 @@
|
||||
<h1 id="jspsych-audio-keyboard-response">jspsych-audio-keyboard-response<a class="headerlink" href="#jspsych-audio-keyboard-response" title="Permanent link">¶</a></h1>
|
||||
<p>This plugin plays audio files and records responses generated with the keyboard.</p>
|
||||
<p>If the browser supports it, audio files are played using the WebAudio API. This allows for reasonably precise timing of the playback. The timing of responses generated is measured against the WebAudio specific clock, improving the measurement of response times. If the browser does not support the WebAudio API, then the audio file is played with HTML5 audio. </p>
|
||||
<p>Audio files can be automatically preloaded by jsPsych using the <a href="../jspsych-preload/"><code>preload</code> plugin</a>. However, if you are using timeline variables or another dynamic method to specify the audio stimulus, then you will need to <a href="../overview/media-preloading/#manual-preloading">manually preload</a> the audio.</p>
|
||||
<p>Audio files can be automatically preloaded by jsPsych using the <a href="../jspsych-preload/"><code>preload</code> plugin</a>. However, if you are using timeline variables or another dynamic method to specify the audio stimulus, then you will need to <a href="../../overview/media-preloading/#manual-preloading">manually preload</a> the audio.</p>
|
||||
<p>The trial can end when the subject responds, when the audio file has finished playing, or if the subject has failed to respond within a fixed length of time. You can also prevent a keyboard response from being recorded before the audio has finished playing.</p>
|
||||
<h2 id="parameters">Parameters<a class="headerlink" href="#parameters" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of undefined must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of undefined must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -1640,7 +1640,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="data-generated">Data Generated<a class="headerlink" href="#data-generated" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -1581,10 +1581,10 @@
|
||||
<h1 id="jspsych-audio-slider-response">jspsych-audio-slider-response<a class="headerlink" href="#jspsych-audio-slider-response" title="Permanent link">¶</a></h1>
|
||||
<p>This plugin plays an audio file and allows the subject to respond by dragging a slider.</p>
|
||||
<p>If the browser supports it, audio files are played using the WebAudio API. This allows for reasonably precise timing of the playback. The timing of responses generated is measured against the WebAudio specific clock, improving the measurement of response times. If the browser does not support the WebAudio API, then the audio file is played with HTML5 audio. </p>
|
||||
<p>Audio files can be automatically preloaded by jsPsych using the <a href="../jspsych-preload/"><code>preload</code> plugin</a>. However, if you are using timeline variables or another dynamic method to specify the audio stimulus, then you will need to <a href="../overview/media-preloading/#manual-preloading">manually preload</a> the audio.</p>
|
||||
<p>Audio files can be automatically preloaded by jsPsych using the <a href="../jspsych-preload/"><code>preload</code> plugin</a>. However, if you are using timeline variables or another dynamic method to specify the audio stimulus, then you will need to <a href="../../overview/media-preloading/#manual-preloading">manually preload</a> the audio.</p>
|
||||
<p>The trial can end when the subject responds, or if the subject has failed to respond within a fixed length of time. You can also prevent the slider response from being made before the audio has finished playing.</p>
|
||||
<h2 id="parameters">Parameters<a class="headerlink" href="#parameters" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -1676,7 +1676,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="data-generated">Data Generated<a class="headerlink" href="#data-generated" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -1582,7 +1582,7 @@
|
||||
<p>This plugin executes a specified function. This allows the experimenter to run arbitrary code at any point during the experiment.</p>
|
||||
<p>The function cannot take any arguments. If arguments are needed, then an anonymous function should be used to wrap the function call (see examples below).</p>
|
||||
<h2 id="parameters">Parameters<a class="headerlink" href="#parameters" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -1608,7 +1608,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="data-generated">Data Generated<a class="headerlink" href="#data-generated" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -1581,7 +1581,7 @@
|
||||
<h1 id="jspsych-canvas-button-response">jspsych-canvas-button-response<a class="headerlink" href="#jspsych-canvas-button-response" title="Permanent link">¶</a></h1>
|
||||
<p>This plugin can be used to draw a stimulus on a <a href="https://www.w3schools.com/html/html5_canvas.asp">HTML canvas element</a>, and record a button click response and response time. The canvas stimulus can be useful for displaying dynamic, parametrically-defined graphics, and for controlling the positioning of multiple graphical elements (shapes, text, images). The stimulus can be displayed until a response is given, or for a pre-determined amount of time. The trial can be ended automatically if the subject has failed to respond within a fixed length of time. One or more button choices will be displayed under the canvas, and the button style can be customized using HTML formatting.</p>
|
||||
<h2 id="parameters">Parameters<a class="headerlink" href="#parameters" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -1655,7 +1655,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="data-generated">Data Generated<a class="headerlink" href="#data-generated" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -1581,7 +1581,7 @@
|
||||
<h1 id="jspsych-canvas-keyboard-response">jspsych-canvas-keyboard-response<a class="headerlink" href="#jspsych-canvas-keyboard-response" title="Permanent link">¶</a></h1>
|
||||
<p>This plugin can be used to draw a stimulus on a <a href="https://www.w3schools.com/html/html5_canvas.asp">HTML canvas element</a> and record a keyboard response. The canvas stimulus can be useful for displaying dynamic, parametrically-defined graphics, and for controlling the positioning of multiple graphical elements (shapes, text, images). The stimulus can be displayed until a response is given, or for a pre-determined amount of time. The trial can be ended automatically if the subject has failed to respond within a fixed length of time.</p>
|
||||
<h2 id="parameters">Parameters<a class="headerlink" href="#parameters" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -1637,7 +1637,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="data-generated">Data Generated<a class="headerlink" href="#data-generated" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -1581,7 +1581,7 @@
|
||||
<h1 id="jspsych-canvas-slider-response">jspsych-canvas-slider-response<a class="headerlink" href="#jspsych-canvas-slider-response" title="Permanent link">¶</a></h1>
|
||||
<p>This plugin can be used to draw a stimulus on a <a href="https://www.w3schools.com/html/html5_canvas.asp">HTML canvas element</a> and collect a response within a range of values, which is made by dragging a slider. The canvas stimulus can be useful for displaying dynamic, parametrically-defined graphics, and for controlling the positioning of multiple graphical elements (shapes, text, images). The stimulus can be displayed until a response is given, or for a pre-determined amount of time. The trial can be ended automatically if the subject has failed to respond within a fixed length of time.</p>
|
||||
<h2 id="parameters">Parameters<a class="headerlink" href="#parameters" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -1679,7 +1679,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="data-generated">Data Generated<a class="headerlink" href="#data-generated" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -1581,7 +1581,7 @@
|
||||
<h1 id="jspsych-categorize-animation">jspsych-categorize-animation<a class="headerlink" href="#jspsych-categorize-animation" title="Permanent link">¶</a></h1>
|
||||
<p>The categorize animation plugin shows a sequence of images at a specified frame rate. The subject responds by pressing a key. Feedback indicating the correctness of the response is given.</p>
|
||||
<h2 id="parameters">Parameters<a class="headerlink" href="#parameters" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -1667,7 +1667,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="data-generated">Data Generated<a class="headerlink" href="#data-generated" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -1581,7 +1581,7 @@
|
||||
<h1 id="jspsych-categorize-html">jspsych-categorize-html<a class="headerlink" href="#jspsych-categorize-html" title="Permanent link">¶</a></h1>
|
||||
<p>The categorize html plugin shows an HTML object on the screen. The subject responds by pressing a key. Feedback indicating the correctness of the response is given.</p>
|
||||
<h2 id="parameters">Parameters<a class="headerlink" href="#parameters" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -1679,7 +1679,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="data-generated">Data Generated<a class="headerlink" href="#data-generated" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -1581,7 +1581,7 @@
|
||||
<h1 id="jspsych-categorize-image">jspsych-categorize-image<a class="headerlink" href="#jspsych-categorize-image" title="Permanent link">¶</a></h1>
|
||||
<p>The categorize image plugin shows an image object on the screen. The subject responds by pressing a key. Feedback indicating the correctness of the response is given.</p>
|
||||
<h2 id="parameters">Parameters<a class="headerlink" href="#parameters" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -1679,7 +1679,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="data-generated">Data Generated<a class="headerlink" href="#data-generated" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -1581,7 +1581,7 @@
|
||||
<h1 id="jspsych-cloze">*jspsych-cloze<a class="headerlink" href="#jspsych-cloze" title="Permanent link">¶</a></h1>
|
||||
<p>This plugin displays a text with certain words removed. Participants are asked to replace the missing items. Responses are recorded when clicking a button. Optionally, responses are evaluated and a function is called in case of differences, making it possible to inform participants about mistakes.</p>
|
||||
<h2 id="parameters">Parameters<a class="headerlink" href="#parameters" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -1619,7 +1619,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="data-generated">Data Generated<a class="headerlink" href="#data-generated" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -1633,7 +1633,7 @@
|
||||
<h1 id="jspsych-external-html-plugin">jspsych-external-html plugin<a class="headerlink" href="#jspsych-external-html-plugin" title="Permanent link">¶</a></h1>
|
||||
<p>The HTML plugin displays an external HTML document (often a consent form). Either a keyboard response or a button press can be used to continue to the next trial. It allows the experimenter to check if conditions are met (such as indicating informed consent) before continuing.</p>
|
||||
<h2 id="parameters">Parameters<a class="headerlink" href="#parameters" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -1683,7 +1683,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="data-generated">Data Generated<a class="headerlink" href="#data-generated" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -1581,7 +1581,7 @@
|
||||
<h1 id="jspsych-free-sort-plugin">jspsych-free-sort plugin<a class="headerlink" href="#jspsych-free-sort-plugin" title="Permanent link">¶</a></h1>
|
||||
<p>The free-sort plugin displays one or more images on the screen that the participant can interact with by clicking and dragging with a mouse, or touching and dragging with a touchscreen device. When the trial starts, the images can be positioned outside or inside the sort area. All images must be moved into the sorting area before the participant can click a button to end the trial. All of the moves that the participant performs are recorded, as well as the final positions of all images. This plugin could be useful when asking participants to position images based on similarity to one another, or to recall image spatial locations.</p>
|
||||
<h2 id="parameters">Parameters<a class="headerlink" href="#parameters" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -1703,7 +1703,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="data-generated">Data Generated<a class="headerlink" href="#data-generated" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -1585,7 +1585,7 @@
|
||||
<p>Safari does not support keyboard input when the browser is in fullscreen mode. Therefore, the function will not launch fullscreen mode on Safari. The experiment will ignore any trials using the fullscreen plugin in Safari.</p>
|
||||
</div>
|
||||
<h2 id="parameters">Parameters<a class="headerlink" href="#parameters" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -1623,7 +1623,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="data-generated">Data Generated<a class="headerlink" href="#data-generated" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -1581,7 +1581,7 @@
|
||||
<h1 id="jspsych-html-button-response">jspsych-html-button-response<a class="headerlink" href="#jspsych-html-button-response" title="Permanent link">¶</a></h1>
|
||||
<p>This plugin displays HTML content and records responses generated by button click. The stimulus can be displayed until a response is given, or for a pre-determined amount of time. The trial can be ended automatically if the subject has failed to respond within a fixed length of time. The button itself can be customized using HTML formatting.</p>
|
||||
<h2 id="parameters">Parameters<a class="headerlink" href="#parameters" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -1649,7 +1649,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="data-generated">Data Generated<a class="headerlink" href="#data-generated" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -1581,7 +1581,7 @@
|
||||
<h1 id="jspsych-html-keyboard-response">jspsych-html-keyboard-response<a class="headerlink" href="#jspsych-html-keyboard-response" title="Permanent link">¶</a></h1>
|
||||
<p>This plugin displays HTML content and records responses generated with the keyboard.The stimulus can be displayed until a response is given, or for a pre-determined amount of time. The trial can be ended automatically if the subject has failed to respond within a fixed length of time.</p>
|
||||
<h2 id="parameters">Parameters<a class="headerlink" href="#parameters" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of undefined must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of undefined must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -1631,7 +1631,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="data-generated">Data Generated<a class="headerlink" href="#data-generated" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -1581,7 +1581,7 @@
|
||||
<h1 id="jspsych-html-slider-response">jspsych-html-slider-response<a class="headerlink" href="#jspsych-html-slider-response" title="Permanent link">¶</a></h1>
|
||||
<p>This plugin displays HTML content and allows the subject to respond by dragging a slider.</p>
|
||||
<h2 id="parameters">Parameters<a class="headerlink" href="#parameters" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -1673,7 +1673,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="data-generated">Data Generated<a class="headerlink" href="#data-generated" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -1581,7 +1581,7 @@
|
||||
<h1 id="jspsych-iat-html-plugin">jspsych-iat-html plugin<a class="headerlink" href="#jspsych-iat-html-plugin" title="Permanent link">¶</a></h1>
|
||||
<p>This plugin runs a single trial of the <a href="https://implicit.harvard.edu/implicit/iatdetails.html">implicit association test (IAT)</a>, using HTML content as the stimulus.</p>
|
||||
<h2 id="parameters">Parameters<a class="headerlink" href="#parameters" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -1673,7 +1673,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="data-generated">Data Generated<a class="headerlink" href="#data-generated" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -1577,7 +1577,7 @@
|
||||
<p>jspsych-iat-image plugin</p>
|
||||
<p>This plugin runs a single trial of the <a href="https://implicit.harvard.edu/implicit/iatdetails.html">implicit association test (IAT)</a>, using an image as the stimulus.</p>
|
||||
<h2 id="parameters">Parameters<a class="headerlink" href="#parameters" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -1669,7 +1669,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="data-generated">Data Generated<a class="headerlink" href="#data-generated" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -1580,9 +1580,9 @@
|
||||
|
||||
<h1 id="jspsych-image-button-response">jspsych-image-button-response<a class="headerlink" href="#jspsych-image-button-response" title="Permanent link">¶</a></h1>
|
||||
<p>This plugin displays an image and records responses generated with a button click. The stimulus can be displayed until a response is given, or for a pre-determined amount of time. The trial can be ended automatically if the subject has failed to respond within a fixed length of time. The button itself can be customized using HTML formatting.</p>
|
||||
<p>Image files can be automatically preloaded by jsPsych using the <a href="../jspsych-preload/"><code>preload</code> plugin</a>. However, if you are using timeline variables or another dynamic method to specify the image stimulus, you will need to <a href="../overview/media-preloading/#manual-preloading">manually preload</a> the images.</p>
|
||||
<p>Image files can be automatically preloaded by jsPsych using the <a href="../jspsych-preload/"><code>preload</code> plugin</a>. However, if you are using timeline variables or another dynamic method to specify the image stimulus, you will need to <a href="../../overview/media-preloading/#manual-preloading">manually preload</a> the images.</p>
|
||||
<h2 id="parameters">Parameters<a class="headerlink" href="#parameters" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -1674,7 +1674,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="data-generated">Data Generated<a class="headerlink" href="#data-generated" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -1580,9 +1580,9 @@
|
||||
|
||||
<h1 id="jspsych-image-keyboard-response">jspsych-image-keyboard-response<a class="headerlink" href="#jspsych-image-keyboard-response" title="Permanent link">¶</a></h1>
|
||||
<p>This plugin displays and image and records responses generated with the keyboard. The stimulus can be displayed until a response is given, or for a pre-determined amount of time. The trial can be ended automatically if the subject has failed to respond within a fixed length of time.</p>
|
||||
<p>Image files can be automatically preloaded by jsPsych using the <a href="../jspsych-preload/"><code>preload</code> plugin</a>. However, if you are using timeline variables or another dynamic method to specify the image stimulus, you will need to <a href="../overview/media-preloading/#manual-preloading">manually preload</a> the images.</p>
|
||||
<p>Image files can be automatically preloaded by jsPsych using the <a href="../jspsych-preload/"><code>preload</code> plugin</a>. However, if you are using timeline variables or another dynamic method to specify the image stimulus, you will need to <a href="../../overview/media-preloading/#manual-preloading">manually preload</a> the images.</p>
|
||||
<h2 id="parameters">Parameters<a class="headerlink" href="#parameters" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of undefined must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of undefined must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -1656,7 +1656,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="data-generated">Data Generated<a class="headerlink" href="#data-generated" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -1580,9 +1580,9 @@
|
||||
|
||||
<h1 id="jspsych-image-slider-response">jspsych-image-slider-response<a class="headerlink" href="#jspsych-image-slider-response" title="Permanent link">¶</a></h1>
|
||||
<p>This plugin displays and image and allows the subject to respond by dragging a slider.</p>
|
||||
<p>Image files can be automatically preloaded by jsPsych using the <a href="../jspsych-preload/"><code>preload</code> plugin</a>. However, if you are using timeline variables or another dynamic method to specify the image stimulus, you will need to <a href="../overview/media-preloading/#manual-preloading">manually preload</a> the images.</p>
|
||||
<p>Image files can be automatically preloaded by jsPsych using the <a href="../jspsych-preload/"><code>preload</code> plugin</a>. However, if you are using timeline variables or another dynamic method to specify the image stimulus, you will need to <a href="../../overview/media-preloading/#manual-preloading">manually preload</a> the images.</p>
|
||||
<h2 id="parameters">Parameters<a class="headerlink" href="#parameters" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -1698,7 +1698,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="data-generated">Data Generated<a class="headerlink" href="#data-generated" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -1635,7 +1635,7 @@
|
||||
<h1 id="jspsych-instructions-plugin">jspsych-instructions plugin<a class="headerlink" href="#jspsych-instructions-plugin" title="Permanent link">¶</a></h1>
|
||||
<p>This plugin is for showing instructions to the subject. It allows subjects to navigate through multiple pages of instructions at their own pace, recording how long the subject spends on each page. Navigation can be done using the mouse or keyboard. Subjects can be allowed to navigate forwards and backwards through pages, if desired.</p>
|
||||
<h2 id="parameters">Parameters<a class="headerlink" href="#parameters" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -1709,7 +1709,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="data-generated">Data Generated<a class="headerlink" href="#data-generated" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -1581,7 +1581,7 @@
|
||||
<h1 id="jspsych-maxdiff-plugin">jspsych-maxdiff plugin<a class="headerlink" href="#jspsych-maxdiff-plugin" title="Permanent link">¶</a></h1>
|
||||
<p>The maxdiff plugin displays a table with rows of alternatives to be selected for two mutually-exclusive categories, typically as 'most' or 'least' on a particular criteria (e.g. importance, preference, similarity). The participant responds by selecting one radio button corresponding to an alternative in both the left and right response columns. The same alternative cannot be endorsed on both the left and right response columns (e.g. 'most' and 'least') simultaneously.</p>
|
||||
<h2 id="parameters">Parameters<a class="headerlink" href="#parameters" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -1631,7 +1631,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="data-generated">Data Generated<a class="headerlink" href="#data-generated" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -1582,7 +1582,7 @@
|
||||
<p>This plugin loads images, audio, and video files. It is used for loading files into the browser's memory before they are needed in the experiment, in order to improve stimulus and response timing, and avoid disruption to the experiment flow. We recommend using this plugin anytime you are loading media files, and especially when your experiment requires large and/or many media files. See the <a href="../overview/media-preloading/">Media Preloading page</a> for more information.</p>
|
||||
<p>The preload trial will end as soon as all files have loaded successfully. The trial will end or stop with an error message when one of these two scenarios occurs (whichever comes first): (a) all files have not finished loading when the <code>max_load_time</code> duration is reached, or (b) all file requests have responded with either a load or fail event, and one or more files has failed to load. The <code>continue_after_error</code> parameter determines whether the trial will stop with an error message or end (allowing the experiment to continue) when preloading is not successful.</p>
|
||||
<h2 id="parameters">Parameters<a class="headerlink" href="#parameters" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. While there are no specific parameters that are required, the plugin expects to be given a set of files to load through one or more of the following parameters: <code>auto_preload</code> or <code>trials</code> (for automatic loading), and/or <code>images</code>, <code>audio</code>, <code>video</code> (for manual loading). To automatically load files based on a timeline of trials, either set the <code>auto_preload</code> parameter is <code>true</code> (to load files based on the main timeline passed to <code>jsPsych.run</code>) or use the <code>trials</code> parameter to load files based on a specific subset of trials. To manually load a set of files, use the <code>images</code>, <code>audio</code>, and <code>video</code> parameters. You can combine automatic and manual loading methods in a single preload trial.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. While there are no specific parameters that are required, the plugin expects to be given a set of files to load through one or more of the following parameters: <code>auto_preload</code> or <code>trials</code> (for automatic loading), and/or <code>images</code>, <code>audio</code>, <code>video</code> (for manual loading). To automatically load files based on a timeline of trials, either set the <code>auto_preload</code> parameter is <code>true</code> (to load files based on the main timeline passed to <code>jsPsych.run</code>) or use the <code>trials</code> parameter to load files based on a specific subset of trials. To manually load a set of files, use the <code>images</code>, <code>audio</code>, and <code>video</code> parameters. You can combine automatic and manual loading methods in a single preload trial.</p>
|
||||
<p>All other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<table>
|
||||
<thead>
|
||||
@ -1675,7 +1675,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="data-generated">Data Generated<a class="headerlink" href="#data-generated" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins/#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -1582,7 +1582,7 @@
|
||||
<p>This plugin allows a subject to interact with a stimulus by modifying a parameter of the stimulus and observing the change in the stimulus in real-time.</p>
|
||||
<p>The stimulus must be defined through a function that returns an HTML-formatted string. The function should take a single value, which is the parameter that can be modified by the subject. The value can only range from 0 to 1. See the example at the bottom of the page for a sample function.</p>
|
||||
<h2 id="parameters">Parameters<a class="headerlink" href="#parameters" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -1632,7 +1632,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="data-generated">Data Generated<a class="headerlink" href="#data-generated" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -1581,7 +1581,7 @@
|
||||
<h1 id="jspsych-resize">jspsych-resize<a class="headerlink" href="#jspsych-resize" title="Permanent link">¶</a></h1>
|
||||
<p>This plugin displays a resizable div container that allows the user to drag until the container is the same size as the item being measured. Once the user measures the item as close as possible, clicking the button sets a scaling factor for the div containing jsPsych content. This causes the stimuli that follow to have a known size, independent of monitor resolution.</p>
|
||||
<h2 id="parameters">Parameters<a class="headerlink" href="#parameters" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -1631,7 +1631,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="data-generated">Data Generated<a class="headerlink" href="#data-generated" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -1581,7 +1581,7 @@
|
||||
<h1 id="jspsych-same-different-html-plugin">jspsych-same-different-html plugin<a class="headerlink" href="#jspsych-same-different-html-plugin" title="Permanent link">¶</a></h1>
|
||||
<p>The same-different-html plugin displays two stimuli sequentially. Stimuli are HTML objects. The subject responds using the keyboard, and indicates whether the stimuli were the same or different. Same does not necessarily mean identical; a category judgment could be made, for example.</p>
|
||||
<h2 id="parameters">Parameters<a class="headerlink" href="#parameters" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -1643,7 +1643,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="data-generated">Data Generated<a class="headerlink" href="#data-generated" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -1581,7 +1581,7 @@
|
||||
<h1 id="jspsych-same-different-image-plugin">jspsych-same-different-image plugin<a class="headerlink" href="#jspsych-same-different-image-plugin" title="Permanent link">¶</a></h1>
|
||||
<p>The same-different-image plugin displays two stimuli sequentially. Stimuli are images. The subject responds using the keyboard, and indicates whether the stimuli were the same or different. Same does not necessarily mean identical; a category judgment could be made, for example.</p>
|
||||
<h2 id="parameters">Parameters<a class="headerlink" href="#parameters" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -1643,7 +1643,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="data-generated">Data Generated<a class="headerlink" href="#data-generated" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -1581,7 +1581,7 @@
|
||||
<h1 id="jspsych-serial-reaction-time-mouse-plugin">jspsych-serial-reaction-time-mouse plugin<a class="headerlink" href="#jspsych-serial-reaction-time-mouse-plugin" title="Permanent link">¶</a></h1>
|
||||
<p>The serial reaction time mouse plugin implements a generalized version of the SRT task <a href="https://doi.org/10.1016%2F0010-0285%2887%2990002-8">(Nissen & Bullmer, 1987)</a>. Squares are displayed in a grid-based system on the screen, and one square changes color. The participant must click on the square that changes color.</p>
|
||||
<h2 id="parameters">Parameters<a class="headerlink" href="#parameters" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -1655,7 +1655,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="data-generated">Data Generated<a class="headerlink" href="#data-generated" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -1581,7 +1581,7 @@
|
||||
<h1 id="jspsych-serial-reaction-time-plugin">jspsych-serial-reaction-time plugin<a class="headerlink" href="#jspsych-serial-reaction-time-plugin" title="Permanent link">¶</a></h1>
|
||||
<p>The serial reaction time plugin implements a generalized version of the SRT task <a href="https://doi.org/10.1016%2F0010-0285%2887%2990002-8">(Nissen & Bullemer, 1987)</a>. Squares are displayed in a grid-based system on the screen, and one square changes color. The participant presses a key that corresponds to the darkened key. Feedback is optionally displayed, showing the participant which square the key they pressed matches.</p>
|
||||
<h2 id="parameters">Parameters<a class="headerlink" href="#parameters" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -1667,7 +1667,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="data-generated">Data Generated<a class="headerlink" href="#data-generated" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -1581,7 +1581,7 @@
|
||||
<h1 id="jspsych-survey-html-form-plugin">jspsych-survey-html-form plugin<a class="headerlink" href="#jspsych-survey-html-form-plugin" title="Permanent link">¶</a></h1>
|
||||
<p>The survey-html-form plugin displays a set of <code><inputs></code> from a HTML string. The type of input can be freely chosen, for a list of possible input types see the <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input">MDN page on inputs</a>. The subject provides answers to the input fields.</p>
|
||||
<h2 id="parameters">Parameters<a class="headerlink" href="#parameters" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -1631,7 +1631,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="data-generated">Data Generated<a class="headerlink" href="#data-generated" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -1581,7 +1581,7 @@
|
||||
<h1 id="jspsych-survey-likert-plugin">jspsych-survey-likert plugin<a class="headerlink" href="#jspsych-survey-likert-plugin" title="Permanent link">¶</a></h1>
|
||||
<p>The survey-likert plugin displays a set of questions with Likert scale responses. The subject responds by selecting a radio button.</p>
|
||||
<h2 id="parameters">Parameters<a class="headerlink" href="#parameters" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -1631,7 +1631,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="data-generated">Data Generated<a class="headerlink" href="#data-generated" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -1581,7 +1581,7 @@
|
||||
<h1 id="jspsych-survey-multi-choice-plugin">jspsych-survey-multi-choice plugin<a class="headerlink" href="#jspsych-survey-multi-choice-plugin" title="Permanent link">¶</a></h1>
|
||||
<p>The survey-multi-choice plugin displays a set of questions with multiple choice response fields. The subject selects a single answer.</p>
|
||||
<h2 id="parameters">Parameters<a class="headerlink" href="#parameters" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -1625,7 +1625,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="data-generated">Data Generated<a class="headerlink" href="#data-generated" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -1581,7 +1581,7 @@
|
||||
<h1 id="jspsych-survey-multi-select-plugin">jspsych-survey-multi-select plugin<a class="headerlink" href="#jspsych-survey-multi-select-plugin" title="Permanent link">¶</a></h1>
|
||||
<p>The survey-multi-select plugin displays a set of questions with multiple select response fields. The subject could select multiple answers.</p>
|
||||
<h2 id="parameters">Parameters<a class="headerlink" href="#parameters" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -1631,7 +1631,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="data-generated">Data Generated<a class="headerlink" href="#data-generated" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -1581,7 +1581,7 @@
|
||||
<h1 id="jspsych-survey-text-plugin">jspsych-survey-text plugin<a class="headerlink" href="#jspsych-survey-text-plugin" title="Permanent link">¶</a></h1>
|
||||
<p>The survey-text plugin displays a set of questions with free response text fields. The subject types in answers.</p>
|
||||
<h2 id="parameters">Parameters<a class="headerlink" href="#parameters" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -1625,7 +1625,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="data-generated">Data Generated<a class="headerlink" href="#data-generated" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -1580,9 +1580,9 @@
|
||||
|
||||
<h1 id="jspsych-video-button-response-plugin">jspsych-video-button-response plugin<a class="headerlink" href="#jspsych-video-button-response-plugin" title="Permanent link">¶</a></h1>
|
||||
<p>This plugin plays a video and records responses generated by button click. The stimulus can be displayed until a response is given, or for a pre-determined amount of time. The trial can be ended automatically when the subject responds, when the video file has finished playing, or if the subject has failed to respond within a fixed length of time. You can also prevent a button response from being made before the video has finished playing. The button itself can be customized using HTML formatting.</p>
|
||||
<p>Video files can be automatically preloaded by jsPsych using the <a href="../jspsych-preload/"><code>preload</code> plugin</a>. However, if you are using timeline variables or another dynamic method to specify the video stimulus, you will need to <a href="../overview/media-preloading/#manual-preloading">manually preload</a> the videos. Also note that video preloading is disabled when the experiment is running as a file (i.e. opened directly in the browser, rather than through a server), in order to prevent CORS errors - see the section on <a href="../../overview/running-experiments/">Running Experiments</a> for more information.</p>
|
||||
<p>Video files can be automatically preloaded by jsPsych using the <a href="../jspsych-preload/"><code>preload</code> plugin</a>. However, if you are using timeline variables or another dynamic method to specify the video stimulus, you will need to <a href="../../overview/media-preloading/#manual-preloading">manually preload</a> the videos. Also note that video preloading is disabled when the experiment is running as a file (i.e. opened directly in the browser, rather than through a server), in order to prevent CORS errors - see the section on <a href="../../overview/running-experiments/">Running Experiments</a> for more information.</p>
|
||||
<h2 id="parameters">Parameters<a class="headerlink" href="#parameters" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -1698,7 +1698,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="data-generated">Data Generated<a class="headerlink" href="#data-generated" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -1580,9 +1580,9 @@
|
||||
|
||||
<h1 id="jspsych-video-keyboard-response-plugin">jspsych-video-keyboard-response plugin<a class="headerlink" href="#jspsych-video-keyboard-response-plugin" title="Permanent link">¶</a></h1>
|
||||
<p>This plugin plays a video file and records a keyboard response. The stimulus can be displayed until a response is given, or for a pre-determined amount of time. The trial can be ended automatically when the subject responds, when the video file has finished playing, or if the subject has failed to respond within a fixed length of time. You can also prevent a keyboard response from being recorded before the video has finished playing.</p>
|
||||
<p>Video files can be automatically preloaded by jsPsych using the <a href="../jspsych-preload/"><code>preload</code> plugin</a>. However, if you are using timeline variables or another dynamic method to specify the video stimulus, you will need to <a href="../overview/media-preloading/#manual-preloading">manually preload</a> the videos. Also note that video preloading is disabled when the experiment is running as a file (i.e. opened directly in the browser, rather than through a server), in order to prevent CORS errors - see the section on <a href="../../overview/running-experiments/">Running Experiments</a> for more information.</p>
|
||||
<p>Video files can be automatically preloaded by jsPsych using the <a href="../jspsych-preload/"><code>preload</code> plugin</a>. However, if you are using timeline variables or another dynamic method to specify the video stimulus, you will need to <a href="../../overview/media-preloading/#manual-preloading">manually preload</a> the videos. Also note that video preloading is disabled when the experiment is running as a file (i.e. opened directly in the browser, rather than through a server), in order to prevent CORS errors - see the section on <a href="../../overview/running-experiments/">Running Experiments</a> for more information.</p>
|
||||
<h2 id="parameters">Parameters<a class="headerlink" href="#parameters" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -1680,7 +1680,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="data-generated">Data Generated<a class="headerlink" href="#data-generated" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -1580,9 +1580,9 @@
|
||||
|
||||
<h1 id="jspsych-video-slider-response-plugin">jspsych-video-slider-response plugin<a class="headerlink" href="#jspsych-video-slider-response-plugin" title="Permanent link">¶</a></h1>
|
||||
<p>This plugin plays a video and allows the subject to respond by dragging a slider. The stimulus can be displayed until a response is given, or for a pre-determined amount of time. The trial can be ended automatically when the subject responds, when the video file has finished playing, or if the subject has failed to respond within a fixed length of time. You can also prevent the slider response from being made before the video has finished playing.</p>
|
||||
<p>Video files can be automatically preloaded by jsPsych using the <a href="../jspsych-preload/"><code>preload</code> plugin</a>. However, if you are using timeline variables or another dynamic method to specify the video stimulus, you will need to <a href="../overview/media-preloading/#manual-preloading">manually preload</a> the videos. Also note that video preloading is disabled when the experiment is running as a file (i.e. opened directly in the browser, rather than through a server), in order to prevent CORS errors - see the section on <a href="../../overview/running-experiments/">Running Experiments</a> for more information.</p>
|
||||
<p>Video files can be automatically preloaded by jsPsych using the <a href="../jspsych-preload/"><code>preload</code> plugin</a>. However, if you are using timeline variables or another dynamic method to specify the video stimulus, you will need to <a href="../../overview/media-preloading/#manual-preloading">manually preload</a> the videos. Also note that video preloading is disabled when the experiment is running as a file (i.e. opened directly in the browser, rather than through a server), in order to prevent CORS errors - see the section on <a href="../../overview/running-experiments/">Running Experiments</a> for more information.</p>
|
||||
<h2 id="parameters">Parameters<a class="headerlink" href="#parameters" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -1722,7 +1722,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="data-generated">Data Generated<a class="headerlink" href="#data-generated" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -1704,7 +1704,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="data-generated">Data Generated<a class="headerlink" href="#data-generated" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="overview#datacollectedbyplugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<p>In addition to the <a href="overview.md#datacollectedbyplugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<p><em>Note: The deg data are <strong>only</strong> returned if viewing distance is estimated with the blindspot method (px2deg, win_height_deg, win_width_deg, item_width_deg).</em></p>
|
||||
<table>
|
||||
<thead>
|
||||
|
@ -1582,7 +1582,7 @@
|
||||
<p>This plugin presents a customizable visual-search task modelled after <a href="http://dx.doi.org/10.3758/BF03206946">Wang, Cavanagh, & Green (1994)</a>. The subject indicates whether or not a target is present among a set of distractors. The stimuli are displayed in a circle, evenly-spaced, equidistant from a fixation point. Here is an example using normal and backward Ns:</p>
|
||||
<p><img alt="Sample Visual Search Stimulus" src="../../img/visual_search_example.jpg" /></p>
|
||||
<h2 id="parameters">Parameters<a class="headerlink" href="#parameters" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -1668,7 +1668,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="data-generated">Data Generated<a class="headerlink" href="#data-generated" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -1581,7 +1581,7 @@
|
||||
<h1 id="jspsych-webgazer-calibrate">jspsych-webgazer-calibrate<a class="headerlink" href="#jspsych-webgazer-calibrate" title="Permanent link">¶</a></h1>
|
||||
<p>This plugin can be used to calibrate the <a href="../extensions/jspsych-ext-webgazer">WebGazer extension</a>. For a narrative description of eye tracking with jsPsych, see the <a href="../overview/eye-tracking">eye tracking overview</a>. </p>
|
||||
<h2 id="parameters">Parameters<a class="headerlink" href="#parameters" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -1637,7 +1637,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="data-generated">Data Generated<a class="headerlink" href="#data-generated" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -1656,7 +1656,7 @@
|
||||
</table>
|
||||
<p>No data currently added by this plugin. Use the <a href="jspsych-webgazer-validate">webgazer-validate</a> plugin to measure the precision and accuracy of calibration.</p>
|
||||
<h2 id="example">Example<a class="headerlink" href="#example" title="Permanent link">¶</a></h2>
|
||||
<p>Because the eye tracking plugins need to be used in conjunction with each other, please see the <a href="../overview/eye-tracking/#example">example on the eye tracking overview page</a> for an integrated example. </p>
|
||||
<p>Because the eye tracking plugins need to be used in conjunction with each other, please see the <a href="../../overview/eye-tracking/#example">example on the eye tracking overview page</a> for an integrated example. </p>
|
||||
|
||||
|
||||
|
||||
|
@ -1581,7 +1581,7 @@
|
||||
<h1 id="jspsych-webgazer-init-camera">jspsych-webgazer-init-camera<a class="headerlink" href="#jspsych-webgazer-init-camera" title="Permanent link">¶</a></h1>
|
||||
<p>This plugin initializes the camera and helps the participant center their face in the camera view for using the the <a href="../extensions/jspsych-ext-webgazer">WebGazer extension</a>. For a narrative description of eye tracking with jsPsych, see the <a href="../overview/eye-tracking">eye tracking overview</a>. </p>
|
||||
<h2 id="parameters">Parameters<a class="headerlink" href="#parameters" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -1607,7 +1607,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="data-generated">Data Generated<a class="headerlink" href="#data-generated" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -1625,7 +1625,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="example">Example<a class="headerlink" href="#example" title="Permanent link">¶</a></h2>
|
||||
<p>Because the eye tracking plugins need to be used in conjunction with each other, please see the <a href="../overview/eye-tracking/#example">example on the eye tracking overview page</a> for an integrated example. </p>
|
||||
<p>Because the eye tracking plugins need to be used in conjunction with each other, please see the <a href="../../overview/eye-tracking/#example">example on the eye tracking overview page</a> for an integrated example. </p>
|
||||
|
||||
|
||||
|
||||
|
@ -1581,7 +1581,7 @@
|
||||
<h1 id="jspsych-webgazer-validate">jspsych-webgazer-validate<a class="headerlink" href="#jspsych-webgazer-validate" title="Permanent link">¶</a></h1>
|
||||
<p>This plugin can be used to measure the accuracy and precision of gaze predictions made by the <a href="../extensions/jspsych-ext-webgazer">WebGazer extension</a>. For a narrative description of eye tracking with jsPsych, see the <a href="../overview/eye-tracking">eye tracking overview</a>. </p>
|
||||
<h2 id="parameters">Parameters<a class="headerlink" href="#parameters" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#parameters-available-in-all-plugins">parameters available in all plugins</a>, this plugin accepts the following parameters. Parameters with a default value of <em>undefined</em> must be specified. Other parameters can be left unspecified if the default value is acceptable.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -1643,7 +1643,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="data-generated">Data Generated<a class="headerlink" href="#data-generated" title="Permanent link">¶</a></h2>
|
||||
<p>In addition to the <a href="../overview/plugins#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<p>In addition to the <a href="../../overview/plugins/#data-collected-by-all-plugins">default data collected by all plugins</a>, this plugin collects the following data for each trial.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -1681,7 +1681,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="example">Example<a class="headerlink" href="#example" title="Permanent link">¶</a></h2>
|
||||
<p>Because the eye tracking plugins need to be used in conjunction with each other, please see the <a href="../overview/eye-tracking/#example">example on the eye tracking overview page</a> for an integrated example. </p>
|
||||
<p>Because the eye tracking plugins need to be used in conjunction with each other, please see the <a href="../../overview/eye-tracking/#example">example on the eye tracking overview page</a> for an integrated example. </p>
|
||||
|
||||
|
||||
|
||||
|
@ -3931,7 +3931,7 @@ data, such as in the example below.</p>
|
||||
<h3 id="return-value_18">Return value<a class="headerlink" href="#return-value_18" title="Permanent link">¶</a></h3>
|
||||
<p>Either a function that returns the value of the timeline variable, or the value of the timeline variable, depending on the context in which it is used. See <code>call_immediate</code> description above.</p>
|
||||
<h3 id="description_18">Description<a class="headerlink" href="#description_18" title="Permanent link">¶</a></h3>
|
||||
<p><a href="../overview/timeline/#timeline-variables">Timeline variables</a> are a powerful technique for generating experiments with repetitive procedures but different parameter values. This function fetches the current value of a particular timeline variable. It must be used in conjunction with a timeline that has timeline variables. See the <a href="../overview/timeline/#timeline-variables">timeline variable section</a> for details.</p>
|
||||
<p><a href="../../overview/timeline/#timeline-variables">Timeline variables</a> are a powerful technique for generating experiments with repetitive procedures but different parameter values. This function fetches the current value of a particular timeline variable. It must be used in conjunction with a timeline that has timeline variables. See the <a href="../../overview/timeline/#timeline-variables">timeline variable section</a> for details.</p>
|
||||
<h3 id="examples">Examples<a class="headerlink" href="#examples" title="Permanent link">¶</a></h3>
|
||||
<h4 id="standard-use-as-a-parameter-for-a-trial">Standard use as a parameter for a trial<a class="headerlink" href="#standard-use-as-a-parameter-for-a-trial" title="Permanent link">¶</a></h4>
|
||||
<div class="highlight"><pre><span></span><code><span class="kd">var</span> <span class="nx">trial</span> <span class="o">=</span> <span class="p">{</span>
|
||||
|
File diff suppressed because one or more lines are too long
Binary file not shown.
@ -1630,7 +1630,7 @@ This guide is aimed at users who are familiar with v6.x of jsPsych and would lik
|
||||
<h2 id="loading-jspsych">Loading jsPsych<a class="headerlink" href="#loading-jspsych" title="Permanent link">¶</a></h2>
|
||||
<p>There are now three different ways you can load jsPsych into your HTML file.
|
||||
We've updated the <a href="../../tutorials/hello-world/">hello world tutorial</a> to walk through each of the three options.
|
||||
If you are looking for the option that is most similar to the version 6.x experience, check out <a href="../tutorials/hello-world/#option-2-download-and-host-jspsych">option 2</a>.
|
||||
If you are looking for the option that is most similar to the version 6.x experience, check out <a href="../../tutorials/hello-world/#option-2-download-and-host-jspsych">option 2</a>.
|
||||
The biggest difference from what you are used to is that the directory structure of the downloaded library is slightly different and plugin files are named a little bit differently.</p>
|
||||
<h2 id="initializing-and-running-jspsych">Initializing and running jsPsych<a class="headerlink" href="#initializing-and-running-jspsych" title="Permanent link">¶</a></h2>
|
||||
<p>We've removed <code>jsPsych.init()</code> and split the features into two different functions. </p>
|
||||
|
@ -1735,7 +1735,7 @@ Despite this simple task, the tutorial covers many of the key features of jsPsyc
|
||||
<p>Start by setting up a new HTML file with jsPsych, the html-keyboard-response plugin, and the jspsych.css file loaded. If you are unsure how to do this, follow the <a href="../hello-world/">Hello World tutorial</a>. You should have an HTML document that looks like this:</p>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">Info</p>
|
||||
<p>This tutorial assumes that you are using the <a href="hello-world/#option-1-using-cdn-hosted-scripts">CDN-based method of loading jsPsych</a>.
|
||||
<p>This tutorial assumes that you are using the <a href="../hello-world/#option-1-using-cdn-hosted-scripts">CDN-based method of loading jsPsych</a>.
|
||||
If you are using another method then everything is the same except for how jsPsych is loaded.</p>
|
||||
</div>
|
||||
<div class="highlight"><pre><span></span><code><span class="cp"><!DOCTYPE html></span>
|
||||
|
Loading…
Reference in New Issue
Block a user