Perquisites
- Install Node.js
- Install a code editor like VS Code.
- You need a computer with a webcam and Google Chrome.
Download the Code
-
Clone the repository:
git clone git@github.com:OpenElement/ibre-online-vi.git
Or download as a ZIP by clicking
Code
->Download ZIP
.
-
Open a terminal in the code directory.
-
Install required packages:
npm install
-
Edit the WebGazer package:
-
Open
packages/webgazer/src/utils.mjs
. -
Add this line at the top:
import webgazer from 'webgazer';
-
-
Start the experiment:
npm run start
-
Click the link provided to test. Use
Ctrl + C
to stop the session.
Redirection Link
Create a file named redirection.json
with the following content:
{
"platformRedirect": "LINK"
}
- Replace
LINK
with the redirection link from your participant recruitment platform (e.g., SONA or Prolific).
Messages
Edit the consent form and debrief using the templates in the assets
directory.
Run this command to compile the experiment for JATOS:
npm build jatos
This will generate a .jzip
file that you can import into JATOS.