adjusting examples

This commit is contained in:
Josh de Leeuw 2016-08-15 22:55:39 -04:00
parent 1a1db497c9
commit 113c674133
4 changed files with 1 additions and 17 deletions

View File

@ -13,9 +13,6 @@
</style>
</head>
<body>
<div id="jspsych-target"></div>
</body>
<script>
var images = ["img/1.gif", "img/2.gif", "img/3.gif", "img/4.gif", "img/5.gif", "img/6.gif", "img/7.gif", "img/8.gif", "img/9.gif", "img/10.gif"];
@ -45,7 +42,6 @@
}
jsPsych.init({
display_element: $('#jspsych-target'),
timeline: [block, after_block],
on_finish: function() {
jsPsych.data.displayData();

View File

@ -13,9 +13,6 @@
</style>
</head>
<body>
<div id="jspsych-target"></div>
</body>
<script>
var images = ["img/1.gif", "img/2.gif", "img/3.gif", "img/4.gif", "img/5.gif", "img/6.gif", "img/7.gif", "img/8.gif", "img/9.gif", "img/10.gif"];
@ -40,7 +37,6 @@
jsPsych.init({
display_element: $('#jspsych-target'),
timeline: [block],
on_finish: function() {
jsPsych.data.displayData();

View File

@ -8,21 +8,17 @@
img { width: 300px; }
</style>
</head>
<body>
<div id="jspsych-target"></div>
</body>
<script>
// no type parameter below.
var block_1 = {
stimulus: 'img/happy_face_1.jpg',
stimulus: 'img/happy_face_1.jpg',
choices: [89,78], // Y or N
prompt: '<p class="center-content">Have you seen this face before? Y or N.</p>'
}
// should get error message in console about no type parameter.
jsPsych.init({
display_element: $('#jspsych-target'),
timeline: [block_1]
});

View File

@ -13,9 +13,6 @@
</style>
</head>
<body>
<div id="jspsych-target"></div>
</body>
<script>
var block_1 = {
type: 'single-stim',
@ -25,7 +22,6 @@
}
jsPsych.init({
display_element: $('#jspsych-target'),
timeline: [block_1],
fullscreen: true,
on_finish: function() {