jsPsych/examples/jspsych-survey-text.html
2016-12-09 21:25:56 -05:00

27 lines
576 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>
<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
};
jsPsych.init({
timeline: [survey_block],
on_finish: function() { jsPsych.data.displayData(); }
});
</script>
</html>