PsychoPy Online Demos

My experiments serve as JavaScript tutorials and demos on how to extend PsychoJS with extra features

JavaScript Debugging Tutorials

tutorial_js_syntax_error

Experiment is stuck on “initialising the experiment…” code | try it

tutorial_js_semantic_error

PsychoJS shows a dialog with an error message. code | try it

tutorial_js_network_error

PsychoJS shows a dialog with “unknown resource” message. code | try it

tutorial_js_console_log

Get additional info about what is happening in the code of your experiment. code | try it

tutorial_js_expose_psychojs

Find out how your to expose PsychoJS objects to the web browser, so that you can access them via the browser console, and try things out in order to see what works (or not). code | try it

assignment_stroop

An exercise, featuring an experiment with a syntax, semantic, and network error. code | try it

Demos that extend PsychoJS

demo_eye_tracking2

Eye-tracking via a webcam. code | try it | discussion thread 1 | discussion thread 2

mouseview_demo

Mouse-tracking. code | try it

demo_gyroscope

Tells the orientation of a hand-held device. code | try it

demo_keyup

Log the duration of a keypress. code | try it | discussion thread

demo_multikey

Register multiple keys being up or down at the same time. code | try it

demo_dynamic_loops

A loop that is set up via code instead of reading directly from a conditions file. code | try it

demo_dynamic_allowedkeys

Illustrates how to have a Keyboard Component in PsychoJS listen to a set of keys specified in a conditions file. code | try it

demo_chaining

How to daisy chain Pavlovia with another website (like Prolific or Qualtrics). code | try it

demo_embed_html

Embed an HTML page or a form.io form into a PsychoJS experiment. code | try it

demo_polyfill

JS workarounds of @wakecarter’s crib-sheet, upgraded and bundled up in a single JavaScript file code | try it

3 Likes