jsPsych/tests&examples/jspsych-instructions.html
2015-12-15 12:52:11 -05:00

32 lines
722 B
HTML

<!doctype html>
<html>
<head>
<script src="js/jquery.min.js"></script>
<script src="../jspsych.js"></script>
<script src="../plugins/jspsych-instructions.js"></script>
<link rel="stylesheet" href="../css/jspsych.css"></link>
</head>
<body>
<div id="jspsych-target"></div>
</body>
<script>
var trial = {
type: 'instructions',
pages: [
'Welcome to the experiment. Click next to begin.',
'This is the second page of instructions.',
'This is the final page.'
],
show_clickable_nav: true
}
jsPsych.init({
display_element: $('#jspsych-target'),
timeline: [trial],
on_finish: function(){ jsPsych.data.displayData(); }
});
</script>
</html>