mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 11:10:54 +00:00
update comments in rt-task HTML file for consistency with tutorial
This commit is contained in:
parent
319c04bbd7
commit
e46ca21bf7
@ -11,6 +11,7 @@
|
|||||||
<body></body>
|
<body></body>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
/* initialize jsPsych */
|
||||||
var jsPsych = initJsPsych({
|
var jsPsych = initJsPsych({
|
||||||
on_finish: function () {
|
on_finish: function () {
|
||||||
jsPsych.data.displayData();
|
jsPsych.data.displayData();
|
||||||
@ -55,12 +56,13 @@
|
|||||||
};
|
};
|
||||||
timeline.push(instructions);
|
timeline.push(instructions);
|
||||||
|
|
||||||
/* test trials */
|
/* define trial stimuli array for timeline variables */
|
||||||
var test_stimuli = [
|
var test_stimuli = [
|
||||||
{ stimulus: "img/blue.png", correct_response: 'f' },
|
{ stimulus: "img/blue.png", correct_response: 'f' },
|
||||||
{ stimulus: "img/orange.png", correct_response: 'j' }
|
{ stimulus: "img/orange.png", correct_response: 'j' }
|
||||||
];
|
];
|
||||||
|
|
||||||
|
/* define fixation and test trials */
|
||||||
var fixation = {
|
var fixation = {
|
||||||
type: jsPsychHtmlKeyboardResponse,
|
type: jsPsychHtmlKeyboardResponse,
|
||||||
stimulus: '<div style="font-size:60px;">+</div>',
|
stimulus: '<div style="font-size:60px;">+</div>',
|
||||||
@ -86,6 +88,7 @@
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* define test procedure */
|
||||||
var test_procedure = {
|
var test_procedure = {
|
||||||
timeline: [fixation, test],
|
timeline: [fixation, test],
|
||||||
timeline_variables: test_stimuli,
|
timeline_variables: test_stimuli,
|
||||||
|
Loading…
Reference in New Issue
Block a user