Demo Scripts

Advanced Demos

Statistics z Score Demo

Statistics z Score Demo

This shows how to use the built-in z-score statistical function.


Graphics Circle and Events Demo

Graphics Circle and Events Demo

Demo that illustrates how to draw circles with text, how to group these, catch mouse events, and how to connect them with a line on a mouse click. This script can be used as the basis for a full-fledged Trail Making Test.


Timing Issues

Timing Issues

Functions that explore different approaches to measuring time, including ways to attain millisecond precision or better.


Tic Tac Toe Multiplayer Version

Tic Tac Toe Multiplayer Version

Two-player version of the Tic Tac Toe game. Two players, matched in order of arrival, take turns playing over the Internet. 

Multiplayer Game

Multiplayer Game

This is a very simple chat ‘game’. Two ‘players’ are randomly matched and can then input text and send it to the other ‘player’ in a turn-taking manner. It is an example of how one could develop a full-fledged (economic) game with two or more players who interact over Internet.


Digit Span Complete Example - Dutch

Digit Span Complete Example - Dutch

Like the Corsi Blocks Demo, this is a much more extensive example that can be (and has been) used for research purposes. This version includes a practice phase with feedback on common errors and is generally more robust  This version has Dutch instructions. An English version is forthcoming.


Corsi Blocks Complete Example - Dutch

Corsi Blocks Complete Example - Dutch

This is a much more extensive example than the minimal demo. This version includes a practice phase with feedback on common errors and is generally more robust (e.g., if subjects click on the background an ‘error flash’ is shown). This version has Dutch instructions. An English version is forthcoming.


Flanker Task

Flanker Task

This is a fairly complete demo of the Eriksen Flanker Task, which takes about 2.5 min. It is suitable for use in lectures, where the audience can take the test on a laptop (keyboard) or mobile phone (touch screen). Feedback is given, including a T-Test significance level of how much faster congruent were compared with incongruent trials.


Pivot Table and Table

Pivot Table and Table

Demo of the pivottable function and how present tables (e.g., for feedback)


Fullscreen Demo

Fullscreen Demo

Demo of how to force subjects to do a task in fullscreen. Note that browsers keep changing the rules and conditions of when and how to allow fullscreen, so if you are going to use this, be sure to test these functions well.


Event Handling (asynchronously)

Event Handling (asynchronously)

You can still use all of jquery’s event handlers, as this demo illustrates.


Graphics Demo 1

Graphics Demo 1


NeuroTask Card Sorting Test

NeuroTask Card Sorting Test

This is the NeuroTask Scripting implementation of the well-known Wisconsin Card Sorting Test with slightly different shapes and colors. Cards can be dragged onto one of the four target cards.


Memory Game

Memory Game


Drag-And-Drop

Drag-And-Drop