jsPsych/examples/jspsych-survey-text.html
2017-07-23 13:04:39 -04:00

27 lines
631 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>
var survey_block = {
type: 'survey-text',
nested: [{question: 'How old are you?',
value: 'age', rows: 1, columns: 50},
{question: 'Where were you born?',
value: 'location', rows: 1, columns: 50}],
};
jsPsych.init({
timeline: [survey_block],
on_finish: function() { jsPsych.data.displayData(); }
});
</script>
</html>