renaming stuff in html plugin

This commit is contained in:
Josh de Leeuw 2013-11-08 22:24:28 -05:00
parent 684710246a
commit e697961a75
2 changed files with 6 additions and 7 deletions

View File

@ -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,

View File

@ -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
}); });