Skip to content

minnojs/minnojs-pavlovia

Repository files navigation

MinnoJS pavlovia plugin

This repository holds the plugin for running MinnoJS studies on Pavlovia.

Using the plugin

In order to use MinnoJS in Pavlovia, all you need to do is add a plugin to you manager file. In order to do so, require it at the first line of your script:

define(['managerAPI', 'https://cdn.jsdelivr.net/gh/minnojs/minnojs-pavlovia/minnojs.pavlovia.plugin.min.js'], function(Manager, Pavlovia){

Activating the plugin is as simple as adding the following lines at the beginning of your script:

var pavlovia = new Pavlovia();
API.addSettings('logger', pavlovia.logger);

Finally, if you want the logging to be performed before the end of your manager sequence, you can use a custom task pavlovia.finish:

API.addSequence([
    {inherit:'task1'},
    {inherit:'task2'},
    {inherit:'task3'},
    pavlovia.finish,
    {inherit:'debriefing'}
]);

Setting up Pavlovia

In order to use the plugin, make sure that pavlovia is set to save results as CSV.

About

A plugin for using MinnoJS with pavlovia.org

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published