jsPsych/examples/jspsych-text.html
2017-06-24 23:53:50 -04:00

29 lines
556 B
HTML

<!DOCTYPE html>
<html>
<head>
<script src="../jspsych.js"></script>
<script src="../plugins/jspsych-text.js"></script>
<link rel="stylesheet" href="../css/jspsych.css"></link>
</head>
<script>
var block = {
type: 'text',
text: 'Welcome to the experiment. Press any key to begin.'
}
var mouse = {
type: 'text',
allow_mouse_click: true,
text: 'Click the mouse to continue.'
}
jsPsych.init({
timeline: [block, mouse],
on_finish: function() { jsPsych.data.displayData(); }
});
</script>
</html>