The html-keynbutton-response plugin displays HTML content as html-keyboard-response plugin. And records responses generated with the keyboard or click button. 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 participant does not respond within a fixed length of time.
- Clone this repo and set as working path.
- Run
npm install
to install required packages. - Run
npm run build --watch
to render the distribution. - Open one of the example html to show the basic function.
If you are in the codespace enviroment, please execute two additional processes:
- install live-server by
npm install -g live-server
. - run
live-server
. - Open the popup windows and open the example html.
Several example experiments and plugin demonstrations are available in the /examples
folder.
Double-click on an example HTML file to run it in your web browser, and open it with a programming-friendly text editor to see how it works.
We ❤️ contributions! See the contributing to jsPsych documentation page for more information about how you can help.
If you use this library in academic work, the preferred citation is:
de Leeuw, J.R., Gilbert, R.A., & Luchterhandt, B. (2023). jsPsych: Enabling an open-source collaborative ecosystem of behavioral experiments. Journal of Open Source Software, 8(85), 5351, https://joss.theoj.org/papers/10.21105/joss.05351.
This paper is an updated description of jsPsych and includes all current core team members. It replaces the earlier paper that described jsPsych:
de Leeuw, J.R. (2015). jsPsych: A JavaScript library for creating behavioral experiments in a Web browser. Behavior Research Methods, 47(1), 1-12. doi:10.3758/s13428-014-0458-y
Citations help us demonstrate that this library is used and valued, which allows us to continue working on it.
jsPsych is open source project with numerous contributors. The project is currently managed by the core team of Josh de Leeuw (@jodeleeuw), Becky Gilbert (@becky-gilbert), and Björn Luchterhandt (@bjoluc).
jsPsych was created by Josh de Leeuw.
We're also grateful for the generous support from a Mozilla Open Source Support award, which funded development of the library from 2020-2021.