jsPsych/examples/jspsych-survey-html-form.html
2019-07-04 15:24:37 -04:00

27 lines
631 B
HTML

<!DOCTYPE html>
<html>
<head>
<script src="../jspsych.js"></script>
<script src="../plugins/jspsych-survey-html-form.js"></script>
<link rel="stylesheet" href="../css/jspsych.css"></script>
</head>
<body>
</body>
<script type="text/javascript">
var form_trial = {
type: 'survey-html-form',
preamble: '<p> How are you feeling <b>right now?</b> </p>',
html: '<p> I am feeling <input name="first" type="text" />, <input name="second" type="text" />, and <input name="third" type="text" />.</p>'
}
jsPsych.init({
timeline: [form_trial],
on_finish: function(){ jsPsych.data.displayData(); }
});
</script>
</html>