mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 11:10:54 +00:00
29 lines
556 B
HTML
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>
|