jsPsych/packages/plugin-image-text-annotation/example.html
2022-01-05 15:16:36 -05:00

28 lines
618 B
HTML

<!DOCTYPE html>
<html>
<head>
<script src="../jspsych/dist/index.browser.js"></script>
<script src="dist/index.browser.js"></script>
<link rel="stylesheet" href="../jspsych/css/jspsych.css">
</head>
<body></body>
<script>
const jsPsych = initJsPsych();
const trial = {
type: jsPsychImageTextAnnotation,
image: '../../examples/img/happy_face_3.jpg',
prompt: '<p>Label the face.</p>',
labels: [
'Mouth',
'Eye'
],
regions: [
{left: 150, right: 225, top:180, bottom:200},
]
}
jsPsych.run([trial])
</script>
</html>