jsPsych/examples/preload-progress-bar.html
2017-05-27 18:09:28 -04:00

46 lines
1.0 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<script src="../jspsych.js"></script>
<script src="../plugins/jspsych-single-stim.js"></script>
<link rel="stylesheet" href="../css/jspsych.css"></link>
<style>
img {
width: 300px;
}
</style>
<script>
var trial_1 = {
type: 'single-stim',
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>'
}
var trial_2 = {
type: 'single-stim',
stimulus: 'img/happy_face_2.jpg',
choices: [89, 78], // Y or N
prompt: '<p class="center-content">Have you seen this face before? Y or N.</p>'
}
var trial_3 = {
type: 'single-stim',
stimulus: 'img/happy_face_3.jpg',
choices: [89, 78], // Y or N
prompt: '<p class="center-content">Have you seen this face before? Y or N.</p>'
}
jsPsych.init({
timeline: [trial_1, trial_2, trial_3], //block_set, end_screen],
on_finish: function() {
jsPsych.data.displayData();
}
});
</script>
</head>
</html>