Online Experiments with jsPsych =============================== Welcome to Online Experiments! Please start with the first section, "Introduction". .. toctree:: :maxdepth: 2 00 Introduction <00_about> 01 About the Web <01_web> 02 An introduction to jsPsych <02_first> 03 Developer tools and editing <03_pract> 04 The structure of a jsPsych experiment <04_jspsych> 05 An introduction to JavaScript <05_javascript> 06 Getting data from your experiment <06_data> 07 Allocating participant and condition numbers <07_ppt> 08 More interesting stimuli <08_stimuli> Solution 02 Solution 04 (code in its own file) Solution 04 (multiple images) Solution 05 (all exercises) Solution 06 (CSV results) Repetition Timeline variables Factorial design Factorial with fixation Data saving Data saving line-by-line Use survey-text to add a property PHP code to save data on the server Participant ID allocator and condition number Multiple images using timeline variables Multiple images using a loop Stroop using timeline variables Stroop using a loop Stroop using functions Code editor hunt Lists within lists For tutors * :ref:`search` .. Lesson plan 1. The basics - what are HTML / CSS / JavaScript - what does the server do, vs. what the client does - hello world experiment - what is a node? - what are jsPsych plugins? 1. Simple experiment - RT experiment - Advanced: how to show RT as feedback 1. Some JavaScript - walkthrough of a "vanilla" page that does something (show clock? pong game? scrolling text?) - example of if-elseif-else - example of while - example of for - example of functions 1. Generating nodes - sometimes we want to make lots of similar nodes - makes sense to use a loop to construct the nodes - we can put it in a function too - self-paced reading example - 2AFC experiment 1. More complex example?