Giter Club home page Giter Club logo

disp_time's Introduction

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/.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.