https://github.com/rempsyc/lab_copilot_demo2
https://github.com/rempsyc/lab_copilot_demo2
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rempsyc/lab_copilot_demo2
- Owner: rempsyc
- Created: 2025-09-07T18:48:35.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-09-08T00:09:35.000Z (9 months ago)
- Last Synced: 2025-09-29T11:50:13.406Z (9 months ago)
- Language: JavaScript
- Homepage: https://rempsyc.github.io/lab_copilot_demo2/
- Size: 6.84 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Behavioral Task - Center for Conflict and Cooperation
This repository contains a web-based behavioral experiment implemented for the Center for Conflict and Cooperation. The experiment is a simple Go/No-Go reaction time task that can be hosted as a static website.
## Experiment Overview
The task presents participants with colored squares (green and red) and requires them to:
- **Press SPACEBAR** when they see a **GREEN** square (Go trials)
- **Do NOT respond** when they see a **RED** square (No-Go trials)
### Experiment Structure
1. **Welcome Screen** - Introduction to the task
2. **Instructions** - Detailed explanation of the task requirements
3. **Practice Trials** - 4 practice trials with feedback
4. **Main Experiment** - 40 trials (60% Go trials, 40% No-Go trials)
5. **Results Screen** - Performance summary and data download
## Features
- **Standalone Implementation**: No external dependencies, works offline
- **OSF Data Saving**: Automatically saves data to OSF via DataPipe (experimentId: "Cb1DhSdND5ek")
- **CSV Download**: Manual download button for participant data
- **Responsive Design**: Clean, professional interface
- **Performance Metrics**: Accuracy and reaction time statistics
## Technical Details
- Pure HTML/CSS/JavaScript implementation
- No external library dependencies
- Compatible with modern web browsers
- Can be hosted as a static website (e.g., GitHub Pages)
## Hosting
To host this experiment:
1. Upload all files to a web server or static hosting service
2. Access via `index.html`
3. No additional setup required
## Data Collection
- **Automatic**: Data is automatically sent to OSF via DataPipe
- **Manual**: Participants can download their data as a CSV file
- **Format**: CSV with columns for trial number, stimulus color, response, reaction time, accuracy, etc.
## Files
- `index.html` - Main experiment page
- `experiment.js` - Experiment logic and data handling
- `style.css` - Styling and layout