mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 03:00: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>
|
||||
<script>
|
||||
|
||||
/* initialize jsPsych */
|
||||
var jsPsych = initJsPsych({
|
||||
on_finish: function () {
|
||||
jsPsych.data.displayData();
|
||||
@ -55,12 +56,13 @@
|
||||
};
|
||||
timeline.push(instructions);
|
||||
|
||||
/* test trials */
|
||||
/* define trial stimuli array for timeline variables */
|
||||
var test_stimuli = [
|
||||
{ stimulus: "img/blue.png", correct_response: 'f' },
|
||||
{ stimulus: "img/orange.png", correct_response: 'j' }
|
||||
];
|
||||
|
||||
/* define fixation and test trials */
|
||||
var fixation = {
|
||||
type: jsPsychHtmlKeyboardResponse,
|
||||
stimulus: '<div style="font-size:60px;">+</div>',
|
||||
@ -86,6 +88,7 @@
|
||||
}
|
||||
};
|
||||
|
||||
/* define test procedure */
|
||||
var test_procedure = {
|
||||
timeline: [fixation, test],
|
||||
timeline_variables: test_stimuli,
|
||||
|
Loading…
Reference in New Issue
Block a user