Skip to content

Repository for the experiment scripts (HTML/JS website, as well as codes for PsychoPy and the Arduino) for the paper "Precise display time measurement in JavaScript for web-based experiments".

License

gasparl/disp_time

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Repository for the experiment scripts (HTML/JS website, as well as codes for PsychoPy and the Arduino) for the paper "Precise display time measurement in JavaScript for web-based experiments". The verbatim scripts used for the studies are available via the release v1.0.0, while the present scripts is updated with comments throughout (in the JS and PY files).

The live website using the HTML/JS files in the present repository is available via https://gasparl.github.io/disp_time/index.html. (The studies used this same live website for the presentation of stimuli and the recording of JS timings.)

The index.html file contains all essential HTML elements of this website (including CSS styling). The main.js file contains the main code (general flow). The jscd.js file is just a small external plugin (by Christian Ludwig) for automatically detecting "client" information (computer, browser types and versions, and screen size). The crucial timing methods are in the disptime.js file. A shortened version of this latter file is available via https://github.com/gasparl/dtjs, along with usage instructions, for general use in future experiments.

The PsychoPy version of the test is given in the file py_version.py.

The code for sending keypress triggers via the Arduino device is given in the file Keyboard_Trigger.ino.

The "images" folder contains the (fully black or fully white) images presented in Study 2. The corresponding original (multicolor) images (from GAPED, OASIS, and BASS) are under the subfolder "originals". The Python file used for the color conversion is given as conversion.py.


All files (for each "release") in this repository are permanently stored at https://doi.org/10.5281/zenodo.5912059

DOI


The contents of this repository are licensed under CC-BY 4.0 International. (In essence, you can use all material for any purpose as long as you give credit to the original authors in a reasonable manner, e.g. cite it in case of a publication; for details, see the included LICENSE file.)

An appropriate reference for citation is:

Lukács, G., & Gartus, A. (2022). Precise display time measurement in JavaScript for web-based experiments. Behavior Research Methods. https://doi.org/10.3758/s13428-022-01835-2


For further material related to the study (such as the results data and analysis scripts), see https://osf.io/wyebt/.

About

Repository for the experiment scripts (HTML/JS website, as well as codes for PsychoPy and the Arduino) for the paper "Precise display time measurement in JavaScript for web-based experiments".

Resources

License

Stars

Watchers

Forks