Online Experiment Examples

This page contains instructive examples of online experiments, with instructions and a .zip download. Eventually it will also contain working demos (this requires some work to make sure that results are regularly deleted).

If you use these as a base for your own experiments, please be sure to credit the authors.


Audio Recording

Description

This example records audio in the browser, and allows the participant to play it back, as well as sending it to the server.

Authors

This example was written by Annie Holtz and Kenny Smith. It has been placed under an open license (a copy is included in the .zip file).

Requirements

This experiment requires jsPsych.

Files

Experiment files (.zip)

Loading a trial list from CSV

Description

This example loads information on trials from a CSV file. It also demonstrates how to use a "debug" variable to curtail the number of trials, to make piloting for debug faster.

Authors

This example was written by Alisdair Tullo. It has been placed under an open license (a copy is included in the .zip file).

Requirements

This experiment requires jsPsych.

Files

Experiment files (.zip)

WebSockets

Description

This example has participants click on squares in a grid. This then lights up the square on every other participant's grid. This uses a Python WebSocket server for communication between participants.

Authors

This example was written by Alisdair Tullo. It has been placed under an open license (a copy is included in the .zip file).

Requirements

This experiment requires Python 3.6 or later and the websockets module (see README in the zip file).

Files

Experiment files (.zip)