jsPsych/examples/flex-layout-testing.html
2017-05-25 13:59:43 -04:00

31 lines
712 B
HTML

<!DOCTYPE html>
<html>
<head>
<script src="../jspsych.js"></script>
<script src="../plugins/jspsych-survey-multi-choice.js"></script>
<link rel="stylesheet" href="../css/jspsych.css"></link>
</head>
<body></body>
<script>
var opts = ["Strongly Disagree", "Disagree", "Somewhat Disagree", "Neural", "Somewhat Agree", "Agree", "Strongly Agree"];
var trial_1 = {
type: 'survey-multi-choice',
questions: ["I like vegetables.", "I like fruit."],
options: [opts, opts],
}
var trial_2 = {
type: 'survey-multi-choice',
questions: ["I like vegetables."],
options: [opts],
}
jsPsych.init({
timeline: [trial_1, trial_2],
show_progress_bar: true
});
</script>
</html>