diff --git a/examples/jspsych-categorize.html b/examples/jspsych-categorize.html index 4c711594..7d82fec1 100644 --- a/examples/jspsych-categorize.html +++ b/examples/jspsych-categorize.html @@ -56,13 +56,13 @@ for (var i = 0; i < n_trials; i++) { if (Math.floor(Math.random() * 2) === 0) { // pick a number - stimuli.push("

" + numbers[Math.floor(Math.random * numbers.length)] + "

"); + stimuli.push("

" + numbers[Math.floor(Math.random() * numbers.length)] + "

"); answers.push(81); text_answers.push("number"); } else { // pick a letter - stimuli.push("

" + letters[Math.floor(Math.random * letters.length)] + "

"); + stimuli.push("

" + letters[Math.floor(Math.random() * letters.length)] + "

"); answers.push(80); text_answers.push("letter"); } @@ -75,6 +75,8 @@ key_answer: answers, text_answer: text_answers, choices: [80, 81], + correct_text: "

Correct, this is a %ANS%.

", + incorrect_text: "

Incorrect, this is a %ANS.

", is_html: true, prompt: "

Press P for letter. Press Q for number.

" };