Skip to content

Commit

Permalink
Reorder the instructions, survey and consent
Browse files Browse the repository at this point in the history
Previously the order wasn't really logical if you do not know what
to do. This way it is a bit easier to follow what lays ahead.
  • Loading branch information
maartenuni committed Jan 12, 2021
1 parent bd0eeb5 commit 5dbb376
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 6 deletions.
19 changes: 15 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@
}
);

let welcome_screen = {
type : 'html-keyboard-response',
stimulus : WELCOME_INSTRUCTION,
choices : [KEY_CODE_SPACE],
response_ends_trial : true
};

let instruction_screen_practice = {
type : 'html-keyboard-response',
stimulus : PRE_PRACTICE_INSTRUCTION,
Expand Down Expand Up @@ -175,14 +182,18 @@
//////////////// timeline /////////////////////////////////
let timeline = [];

// First obtain informed consent.
timeline.push(consent_trial);
// Welcome the participant and guide them through the
// consent forms and survey.
timeline.push(welcome_screen);

// Add the different parts of the experiment to the timeline
timeline.push(instruction_screen_practice);
// Obtain informed consent.
timeline.push(consent_trial);

// add survey
timeline.push(survey_procedure);

// Add the different parts of the experiment to the timeline
timeline.push(instruction_screen_practice);

addStimuliToTimeline(timeline, practice_items);
timeline.push(end_practice_screen);
Expand Down
19 changes: 17 additions & 2 deletions instructions.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,30 @@

const PRE_PRACTICE_INSTRUCTION =
const WELCOME_INSTRUCTION =
"<h1>Dear participant,</h1>" +
"<h2>" +
"Welcome in this experiment." +
"</h2>" +
"<p>" +
"First we'll ask a you for your consent. " +
"Then we ask a few questions, after the questions " +
"you will get some more instructions on what to do. " +
"Notice that when you do not give your consent the " +
"experiment terminates immediately." +
"</p>" +
"<p>" +
"Press the spacebar to continue." +
"</p>";

const PRE_PRACTICE_INSTRUCTION =
"<h1>" +
"Task instructions" +
"</h1>" +
"<p>" +
"You are now going to see sentences on the screen, one after " +
"the other. Each sentence is broken up into words. You can " +
"reveal the sentence word-by-word by repeatedly hitting " +
"the spacebar. " +
"This way you walk through each sentence. Your task is to " +
"This way you go through each sentence. Your task is to " +
"<i>silently</i> read each sentence as quickly as possible." +
"</p>" +
"<p>" +
Expand Down

0 comments on commit 5dbb376

Please sign in to comment.