Josh de Leeuw
91ed85f4ad
add live demos for video plugins
2021-08-27 12:22:11 -04:00
Josh de Leeuw
40a54d8264
add survey-html-form examples
2021-08-27 11:06:05 -04:00
Josh de Leeuw
629963f4d3
add survey-likert demos
2021-08-27 10:55:33 -04:00
Josh de Leeuw
c8ba33d9ad
fix file name
2021-08-27 10:55:26 -04:00
Josh de Leeuw
4b4adf660c
add survey-multi-choice and survey-multi-select live demos
2021-08-27 10:36:00 -04:00
Josh de Leeuw
b283f69bad
Merge pull request #2111 from kurokida/docs-demos
...
Create live demos for the IAT and image-button/keyboard/slider plugins.
2021-08-27 09:17:27 -04:00
kurokida
84f64934e0
Create live demos for the IAT and image-button/keyboard/slider plugins.
2021-08-27 15:26:10 +09:00
Josh de Leeuw
a675cba23c
add demos for survey-text
2021-08-26 15:34:00 -04:00
Josh de Leeuw
8f80425206
fix preload in vsc demo
2021-08-26 15:33:50 -04:00
Josh de Leeuw
d10a5b3086
add demo for visual-search-circle
2021-08-26 14:17:33 -04:00
bjoluc
ab7b3545cf
Add @jspsych/config dev dependency to packages
2021-08-25 22:08:45 +02:00
bjoluc
7499817415
Add exports
field to package.json
2021-08-25 21:58:23 +02:00
bjoluc
6006fec96a
Prepare @jspsych/config for external use
2021-08-25 21:57:28 +02:00
Josh de Leeuw
d636e3ac45
update JSON2CSV implementation, other utils
2021-08-25 15:34:03 -04:00
Josh de Leeuw
c374991d17
update preloading methods to use es6 features
2021-08-25 11:20:53 -04:00
Josh de Leeuw
a77052deb2
replace var
where needed
2021-08-25 11:06:11 -04:00
Josh de Leeuw
266f756155
replace var
where needed
2021-08-25 11:05:56 -04:00
Josh de Leeuw
b5f06d4144
update tests for es6
2021-08-25 10:56:40 -04:00
Josh de Leeuw
a54ed29e6e
update unique()
to use es6 Set
2021-08-24 13:45:41 -04:00
Josh de Leeuw
2224784219
replace utility method flatten()
with es6 .flat()
2021-08-24 13:44:58 -04:00
Josh de Leeuw
8e58f6e160
cleanup of issues IDed in review
2021-08-23 15:01:21 -04:00
Josh de Leeuw
3500e2b001
fixing const/let, replacing == with ===
2021-08-23 14:36:56 -04:00
Josh de Leeuw
b0d77e79aa
Merge pull request #2100 from jspsych/modularization-getters
...
modularization-getters
2021-08-23 14:19:22 -04:00
Josh de Leeuw
5d060f6b96
rename getter methods, update docs
2021-08-23 13:11:32 -04:00
Josh de Leeuw
a3769deb81
for loop update
2021-08-23 12:52:49 -04:00
Josh de Leeuw
254dd6612c
update var
2021-08-23 12:51:28 -04:00
Josh de Leeuw
9b2fc7e68b
reimplement factorial() method, add tests, replace var with let/const
2021-08-23 11:41:50 -04:00
Josh de Leeuw
019ab49fea
replace var with let/const
2021-08-23 10:00:28 -04:00
Josh de Leeuw
4b5a4398c7
update for loops, var keyword
2021-08-23 09:53:08 -04:00
Josh de Leeuw
861f83e185
replace var with let/const; replace some for loops
2021-08-23 09:34:09 -04:00
Josh de Leeuw
c20b2dad49
replace var with let or const
2021-08-23 09:03:30 -04:00
bjoluc
0a8773204e
Remove useWebaudio default value in MediaAPI constructor
2021-08-23 11:19:52 +02:00
bjoluc
fee9e19614
Merge branch 'modularization' into preloading
2021-08-23 11:01:24 +02:00
bjoluc
a06b07ddc9
Get rid of reset and createKeyboardEventListeners, instantiate API objects directly in pluginapi tests
2021-08-22 21:59:12 +02:00
bjoluc
39e84a02e2
Remove keycode functionality
2021-08-22 16:25:24 +02:00
bjoluc
cbce6d8919
Replace KeyboardListener objects directly with callback functions
2021-08-22 15:45:55 +02:00
bjoluc
2b82cab264
Remove outdated import in test-extension.ts
2021-08-22 00:33:00 +02:00
bjoluc
c30b6ad19a
Rework preloading in MediaAPI
...
This drops support for the `registerPreload()` function and instead
infers preloading information on the fly in `getAutoPreloadList()`.
2021-08-22 00:11:17 +02:00
bjoluc
bb141c446a
Fix class instance access in callback functions
...
by converting the affected functions to arrow functions to preserve the
outer-scope `this`
2021-08-20 14:17:46 +02:00
bjoluc
ba9c495a21
Add .cjs
extension to import-sort config
2021-08-20 11:39:09 +02:00
Josh de Leeuw
b3b9f5fd5e
Create modular versions of extensions ( #2053 )
...
Extensions are now passed to the `JsPsych` constructor via an `extensions` option.
Along the way, the webgazer plugins and plugin-html-button-response have been modularized as well.
Co-authored-by: bjoluc <mail@bjoluc.de>
Co-authored-by: Becky Gilbert <beckyannegilbert@gmail.com>
2021-08-20 11:15:33 +02:00
Josh de Leeuw
528d9ad5b2
update mkdocs.yml in prep for versioned docs
2021-08-19 16:58:30 -04:00
bjoluc
c340c5ea55
Enhance scripts in package.json files
2021-08-17 20:26:38 +02:00
bjoluc
4fcb2f7e56
Refactor KeyboardListenerAPI
2021-08-17 19:13:30 +02:00
bjoluc
b288a8e21f
Move root Jest config into package.json
2021-08-17 18:58:59 +02:00
bjoluc
f54d48911f
Merge pull request #2084 from bjoluc/parameter-types
...
Enhance parameter types
2021-08-17 17:32:35 +02:00
bjoluc
9c519853fe
Use enum for parameter types and remove JsPsych.plugins
...
`const parameterType` is now `enum ParameterType` and can only be
accessed by importing it.
2021-08-17 17:19:25 +02:00
bjoluc
743ad44e84
Replace ALL_KEYS
and NO_KEYS
with strings
...
`"ALL_KEYS"` is now used instead of `jsPsych.ALL_KEYS` and `"NO_KEYS"`
instead of `jsPsych.NO_KEYS`
2021-08-17 17:07:23 +02:00
bjoluc
2e17ca6b33
Introduce parameterType.KEYS for multiple keys
...
It represents an array of keys, or jsPsych.ALL_KEYS and jsPsych.NO_KEYS
2021-08-17 17:07:23 +02:00
bjoluc
5152f52977
Merge pull request #2079 from bjoluc/preload
...
Implement `preload` flag for plugin parameters
2021-08-17 17:01:18 +02:00