mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 11:10:54 +00:00
3.4 KiB
3.4 KiB
The jsPsych core library
Every jsPsych experiment utilizes the core library (contained in the jspsych.js
file). The core library is the glue that holds all of the various plugins together. There are also several modules that are contained in the core library for tasks that are common to many different experiments. These modules are available whenever the jspsych.js
file is loaded.
Core library API
Core
- jsPsych.currentChunkID
- jsPsych.currentTrial
- jsPsych.endCurrentChunk
- jsPsych.endExperiment
- jsPsych.finishTrial
- jsPsych.getDisplayElement
- jsPsych.init
- jsPsych.initSettings
- jsPsych.preloadImages
- jsPsych.progress
- jsPsych.startTime
- jsPsych.totalTime
Data module
- jsPsych.data.addDataToLastTrial
- jsPsych.data.addProperties
- jsPsych.data.dataAsCSV
- jsPsych.data.dataAsJSON
- jsPsych.data.displayData
- jsPsych.data.getData
- jsPsych.data.getLastChunkData
- jsPsych.data.getLastTrialData
- jsPsych.data.getTrialsOfType
- jsPsych.data.getTrialsFromChunk
- jsPsych.data.localSave
- jsPsych.data.write
Turk module
Randomization module
- jsPsych.randomization.factorial
- jsPsych.randomization.repeat
- jsPsych.randomization.sample
- jsPsych.randomization.shuffle
- jsPsych.randomization.shuffleNoRepeats