From 065e74a2c40fca175d39aad0b8816604a57a7d2e Mon Sep 17 00:00:00 2001 From: Josh de Leeuw Date: Wed, 3 Jan 2018 14:06:20 -0500 Subject: [PATCH] update examples --- examples/jspsych-same-different-html.html | 28 +++++++++++++++++++ ...html => jspsych-same-different-image.html} | 0 examples/jspsych-serial-reaction-time.html | 11 +++----- examples/jspsych-survey-text.html | 9 +++--- 4 files changed, 37 insertions(+), 11 deletions(-) create mode 100644 examples/jspsych-same-different-html.html rename examples/{jspsych-same-different.html => jspsych-same-different-image.html} (100%) diff --git a/examples/jspsych-same-different-html.html b/examples/jspsych-same-different-html.html new file mode 100644 index 00000000..82ed854b --- /dev/null +++ b/examples/jspsych-same-different-html.html @@ -0,0 +1,28 @@ + + + + + + + + + + + + diff --git a/examples/jspsych-same-different.html b/examples/jspsych-same-different-image.html similarity index 100% rename from examples/jspsych-same-different.html rename to examples/jspsych-same-different-image.html diff --git a/examples/jspsych-serial-reaction-time.html b/examples/jspsych-serial-reaction-time.html index 721f886d..964caf66 100644 --- a/examples/jspsych-serial-reaction-time.html +++ b/examples/jspsych-serial-reaction-time.html @@ -24,12 +24,14 @@ { type: 'serial-reaction-time', target: jsPsych.timelineVariable('target1'), - grid_square_size: 80 + grid_square_size: 80, + prompt: "

Press the key that corresponds to the dark box (use 3, 5, 7, 9)

" }, { type: 'serial-reaction-time', target: jsPsych.timelineVariable('target2'), - grid_square_size: 80 + grid_square_size: 80, + prompt: "

Press the key that corresponds to the dark box (use 3, 5, 7, 9)

" } ], timeline_variables: [ @@ -40,11 +42,6 @@ repetitions: 10 } - // var instructions = { - // type: 'html-keyboard-response', - // stimulus: 'Four boxes will be shown on the screen. Press the key associated with the box that is dark. The keys are 3, 5, 7, and 9. Press any key to start.' - // } - jsPsych.init({ timeline: [timeline], on_finish: function() { diff --git a/examples/jspsych-survey-text.html b/examples/jspsych-survey-text.html index 038fc1d8..fcd513b8 100644 --- a/examples/jspsych-survey-text.html +++ b/examples/jspsych-survey-text.html @@ -11,10 +11,11 @@ var survey_block = { type: 'survey-text', - questions: [{prompt: 'How old are you?', - value: 'age', rows: 1, columns: 50}, - {prompt: 'Where were you born?', - value: 'location', rows: 1, columns: 50}], + questions: [ + {prompt: 'How old are you?', value: 'age', rows: 1, columns: 3}, + {prompt: 'Where were you born?', value: 'location', rows: 1, columns: 50}, + {prompt: 'Tell me about your day', value: 'How did it start?', rows:10, columns: 50} + ] }; jsPsych.init({