mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 19:20:55 +00:00

* default show_page_number to false for back-compatability * added a line in the documentation describing page numbering
27 lines
611 B
HTML
27 lines
611 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<script src="../jspsych.js"></script>
|
|
<script src="../plugins/jspsych-instructions.js"></script>
|
|
<link rel="stylesheet" href="../css/jspsych.css"></link>
|
|
</head>
|
|
<body></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,
|
|
show_page_number: true
|
|
}
|
|
|
|
jsPsych.init({
|
|
timeline: [trial],
|
|
on_finish: function(){ jsPsych.data.displayData(); }
|
|
});
|
|
|
|
</script>
|
|
</html>
|