<!doctype html>
<html>
<head>
<title>My experiment</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="jsPsych-4.0/jspsych.js"></script>
<script src="jsPsych-4.0/plugins/jspsych-text.js"></script>
<script src="jsPsych-4.0/plugins/jspsych-single-stim.js"></script>
<link href="jsPsych-4.0/css/jspsych.css" rel="stylesheet" type="text/css"></link>
</head>
<body>
</body>
<script>
/* define welcome message block */
var welcome_block = {
type: "text",
text: "Welcome to the experiment. Press any key to begin."
};
/* define instructions block */
var instructions_block = {
type: "text",
text: "<p>In this experiment, a circle will appear in the center " +
"of the screen.</p><p>If the circle is <strong>blue</strong>, " +
"press the letter F on the keyboard as fast as you can.</p>" +
"<p>If the circle is <strong>orange</strong>, do not press " +
"any key.</p>" +
"<div class='left center-content'><img src='static/images/blue.png'></img>" +
"<p class='small'><strong>Press the F key</strong></p></div>" +
"<div class='right center-content'><img src='static/images/orange.png'></img>" +
"<p class='small'><strong>Do not press a key</strong></p></div>" +
"<p>Press any key to begin.</p>"
};
/* define test block */
var test_block = {
type: "single-stim",
stimuli: ['dog', 'cat'],
choices: ['W','N'],
};
/* create experiment definition array */
var experiment = [];
experiment.push(welcome_block);
experiment.push(instructions_block);
experiment.push(test_block);
/* start the experiment */
jsPsych.init({
experiment_structure: experiment
});
</script>
</html>
--
You received this message because you are subscribed to the Google Groups "jsPsych" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jspsych+u...@googlegroups.com.
To post to this group, send email to jsp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jspsych/65800749-adf5-485c-b666-638d046bef24%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
"></script>
<script src="jsPsych-4.0/jspsych.js"></script>
<script src="jsPsych-4.0/plugins/jspsych-text.js"></script>
<script src="jsPsych-4.0/plugins/jspsych-single-stim.js"></script>
<link href="jsPsych-4.0/css/jspsych.css" rel="stylesheet" type="text/css"></link>
</head>
<body>
</body>
<script>
/* define welcome message block */
var welcome_block = {
type: "text",
text: "Welcome to the experiment. Press any key to begin."
};
/* define instructions block */
var instructions_block = {
type: "text",
text: "<p>In this experiment, a circle will appear in the center " +
"of the screen.</p><p>If the circle is <strong>blue</strong>, " +
"press the letter F on the keyboard as fast as you can.</p>" +
"<p>If the circle is <strong>orange</strong>, do not press " +
"any key.</p>" +
"<div class='left center-content'><img src='static/images/blue.png'></img>" +
"<p class='small'><strong>Press the F key</strong></p></div>" +
"<div class='right center-content'><img src='static/images/orange.png'></img>" +
"<p class='small'><strong>Do not press a key</strong></p></div>" +
"<p>Press any key to begin.</p>"
};
/* define test block */
var test_block = {
type: "single-stim",
stimuli: ['dog', 'cat'],
choices: ['W','N'],
is_html: true
};
/* create experiment definition array */
var experiment = [];
experiment.push(welcome_block);
experiment.push(instructions_block);
experiment.push(test_block);
/* start the experiment */
jsPsych.init({
experiment_structure: experiment
});
</script>
</html>