mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 19:20:55 +00:00
36 lines
729 B
HTML
36 lines
729 B
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>
|
|
</head>
|
|
|
|
<script>
|
|
var block_1 = {
|
|
type: 'single-stim',
|
|
stimulus: 'img/happy_face_1.jpg',
|
|
choices: [89, 78], // Y or N
|
|
prompt: '<p class="center-content">Data should have no time_elapsed property on the next page. Y or N to continue.</p>'
|
|
}
|
|
|
|
jsPsych.data.ignore(['stimulus']);
|
|
|
|
jsPsych.init({
|
|
timeline: [block_1],
|
|
on_finish: function() {
|
|
jsPsych.data.ignore(['time_elapsed']);
|
|
jsPsych.data.displayData();
|
|
}
|
|
});
|
|
</script>
|
|
|
|
</html>
|