JavaScript

Unlock the Lab: Your guide to reading science like a scientist

Application / dashboard

Interactive workshop application for developing science literacy and critical evaluation of research quality through peer assessment of 48 fictional research scenarios.

How to end trial after timeout in jsPsych

Post

I would like to ask for advice regarding a custom plugin for a serial reaction time task, that was created by @vekteo, and is available in Gorilla, where the code can be edited and tested. By default, trials are self-paced, but I would need them to time out after 2,000 ms. I am struggling to achieve this, and would be very grateful if someone could please advise me a bit.

Simultaneously sampling from two variables in jsPsych

Post

Implementation using position indices in a for-of loop to simultaneously sample from two variables in jsPsych, enabling parallel presentation of prime and target words with synchronized trial indexing.