0.1.9 • Published 2 years ago

@pcllab/consent-form-plugin v0.1.9

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

consent-form-plugin

This plugin will display an arbitrary HTML page and automatically add a required checkbox and continue button at the bottom.

Install

npm i @pcllab/consent-form-plugin

Use

import ConsentFormPlugin from '@pcllab/consent-form-plugin';

// ...snip

const trial = {
  type: ConsentFormPlugin,
  url: 'anyurl.html',
};
timeline.push();

// ...snip

Parameters

ParameterTypeDescriptionExamples
urlstringUrl of consent form. This can be relative or absolute. Uses fetch() internally. This defaults to an example url, but should be specified for actual experiments.(default)"https://www.jarvis.psych.purdue.edu/weblab/consent.html""consent.html""../different-form.html"

Data Generated

In addition to the default data collected by all plugins, this plugin collects the following data for each trial.

NameTypeValue
rtnumberResponse time in milliseconds. This is measured from when the form appears until the subject presses the continue button.
0.1.8

2 years ago

0.1.9

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago