mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-12 08:38:11 +00:00
32 lines
943 B
HTML
32 lines
943 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Document</title>
|
|
<script src="../jspsych.js" ></script>
|
|
<script src="../plugins/jspsych-survey-multi-picture.js" ></script>
|
|
<link rel="stylesheet" href="../css/jspsych.css"></link>
|
|
</head>
|
|
<body>
|
|
|
|
</body>
|
|
<script>
|
|
var questions=["Please choose the picture which describes the following sentence: The dog is chased by the cat."]
|
|
var choices = [{url: "http://www.gameswithwords.org/WhichEnglish/images/1_2.jpg", label:""}, {url: "http://www.gameswithwords.org/WhichEnglish/images/1_1.jpg", label:""}]
|
|
var multi_choice_block = {
|
|
type: 'survey-multi-picture',
|
|
questions: questions,
|
|
options: [choices],
|
|
horizontal: true,
|
|
on_finish: function(data) {
|
|
console.log("i'm data", data)
|
|
}
|
|
};
|
|
jsPsych.init({
|
|
timeline: [multi_choice_block],
|
|
on_finish: function(data) {
|
|
},
|
|
});
|
|
</script>
|
|
</html>
|