Most Pushkin native experiment templates will include the following files for editing the settings and content of your experiment. The basic experiment template is the exception, and is a fairly bare bones template for customization.
This file contains some settings you can customize for the experiment. Currently, the default settings in every experiment template are:
fontColor: Set the color for the experiment's font. This can be a web color name, a hex color code, or rgb setting. The default setting is "black."
fontSize: Set the font family. This accepts any font family universally available to web browsers.
fontFamily: Set the font family.
Stimuli are added using the stim.js file, which contains an array to put your stimuli information into. More details on editing the stimuli data for each specific experiment in their respective documentation pages.
Add text to this file that you want on your consent page.
Add text to this file for debrief information at the end of the experiment.
Adding custom jsPsych plugins
The native jsPsych plugins currently get added to the index.js of an experiment, accessing the files on CDN online. If you build a custom plugin, you will need to:
Add the plugin file to the web page/src folder of the experiment
Import jsPsych into the top of the custom plugin file like so: import jsPsych from 'pushkin-jspsych';
Add the plugin towards the top of your experiment.js file like so: require("./jspsych-moving-window.js");