mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 19:20:55 +00:00
renaming stuff in html plugin
This commit is contained in:
parent
684710246a
commit
e697961a75
@ -31,9 +31,9 @@
|
|||||||
trials[i] = {
|
trials[i] = {
|
||||||
"type": "free-sort",
|
"type": "free-sort",
|
||||||
"images": params.stimuli[i], // array of images to display
|
"images": params.stimuli[i], // array of images to display
|
||||||
"stim_height": params.stim_height,
|
"stim_height": params.stim_height || 100,
|
||||||
"stim_width": params.stim_width,
|
"stim_width": params.stim_width || 100,
|
||||||
"timing": params.timing_post_trial || 1000,
|
"timing_post_trial": params.timing_post_trial || 1000,
|
||||||
"prompt": (typeof params.prompt === 'undefined') ? '' : params.prompt,
|
"prompt": (typeof params.prompt === 'undefined') ? '' : params.prompt,
|
||||||
"prompt_location": params.prompt_location || "above",
|
"prompt_location": params.prompt_location || "above",
|
||||||
"sort_area_width": params.sort_area_width || 800,
|
"sort_area_width": params.sort_area_width || 800,
|
||||||
|
@ -24,11 +24,10 @@ Data:
|
|||||||
|
|
||||||
|
|
||||||
Example Usage:
|
Example Usage:
|
||||||
jsPsych.init($('#target'),
|
jsPsych.init(
|
||||||
{experiment_structure: [
|
{experiment_structure: [
|
||||||
{type: "html", pages:[{url: "intro.html", cont_btn: "start"}]}
|
{type: "html", pages:[{url: "intro.html", cont_btn: "start"}]}
|
||||||
],
|
]
|
||||||
finish: function(data) { }
|
|
||||||
});
|
});
|
||||||
*/
|
*/
|
||||||
(function($) {
|
(function($) {
|
||||||
@ -44,7 +43,7 @@ Example Usage:
|
|||||||
url: params.pages[i].url,
|
url: params.pages[i].url,
|
||||||
cont_key: params.pages[i].cont_key || params.cont_key,
|
cont_key: params.pages[i].cont_key || params.cont_key,
|
||||||
cont_btn: params.pages[i].cont_btn || params.cont_btn,
|
cont_btn: params.pages[i].cont_btn || params.cont_btn,
|
||||||
timing_post_trial: params.pages[i].timing || params.timing,
|
timing_post_trial: params.pages[i].timing_post_trial || params.timing_post_trial,
|
||||||
check_fn: params.pages[i].check_fn,
|
check_fn: params.pages[i].check_fn,
|
||||||
force_refresh: params.force_refresh || false
|
force_refresh: params.force_refresh || false
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user