Commit Graph

8 Commits

Author SHA1 Message Date
Josh de Leeuw
b8a72862cf added keys option to XAB
Added two optional parameters to the XAB plugin so that they key that
subjects press to answer left/right is a parameter. The parameters have
default values of 'q' and 'p' to maintain compatibility.
2012-07-17 16:24:25 -04:00
Josh de Leeuw
94610dbccc Fixing some bugs due to change in the plugin structure. 2012-05-23 12:18:57 -04:00
Josh de Leeuw
befdcfc1cd Rescoped everything so that jsPsych is not a jQuery plugin.
The top level object is jsPsych, and plugins are defined as jsPsych.PLUGIN.

The library also loads everything dynamically now, so the user only needs to load the main jsPsych script (and specify the src for any plugins).

This also changes how the library is loaded initially, since it is not based on the jQuery method anymore. See wiki.
2012-05-17 09:19:04 -04:00
Josh de Leeuw
9c94b4d0b6 Reworking the plugin structure to use the Module javascript design pattern.
Plugins now have a consistent internal structure, with better variable scoping.

This version breaks backward compatibility due to a change in the syntax of how experiment objects are declared.
2012-05-15 16:03:26 -04:00
Josh de Leeuw
6656564b63 Fixed IE bugs in animation, categorization, and xab versions. 2012-05-14 15:28:20 -04:00
Josh de Leeuw
5ffc885139 added a touch version of the xab task (click on the target instead of pressing a key) 2012-04-23 20:56:18 -04:00
Josh de Leeuw
e556be06c9 Two changes:
-- added time recording to samedifferent task, which records the actual clock time
that stimuli were onscreen. We're using this data to verify that stimuli are
presented for the desired amount of time.
-- fixed a bug in XAB task, where some correct responses were not being recorded.
2012-04-19 14:11:12 -04:00
Drew Hendrickson
ee8de223d5 code directly from Josh 2012-03-26 23:32:21 -04:00