jsPsych/examples/jspsych-survey-text.html
2017-06-24 23:53:50 -04:00

29 lines
632 B
HTML

<!DOCTYPE html>
<html>
<head>
<script src="../jspsych.js"></script>
<script src="../plugins/jspsych-survey-text.js"></script>
<link rel="stylesheet" href="../css/jspsych.css"></link>
</head>
<body></body>
<script>
// defining groups of questions that will go together.
var page_1_questions = ["How old are you?", "Where were you born?"];
var survey_block = {
type: 'survey-text',
questions: page_1_questions,
rows: [1, 8],
columns: [50, 20]
};
jsPsych.init({
timeline: [survey_block],
on_finish: function() { jsPsych.data.displayData(); }
});
</script>
</html>