mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-12 08:38:11 +00:00
31 lines
770 B
HTML
31 lines
770 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>
|
|
|
|
<script>
|
|
|
|
var trial = {
|
|
type: 'instructions',
|
|
pages: [
|
|
'Welcome to the experiment. Click next to begin.',
|
|
'<div>In this experiment, you will be given a series of images and asked a question.<br>' +
|
|
'Answer with the keys "y" or "n".',
|
|
'Here is an example:<br><br> ' +
|
|
'<img src="img/age/of2.jpg"></img><br><br>' +
|
|
'Is this person OLD or YOUNG?'
|
|
],
|
|
show_clickable_nav: true
|
|
}
|
|
|
|
jsPsych.init({
|
|
timeline: [trial],
|
|
on_finish: function(){ jsPsych.data.displayData(); }
|
|
});
|
|
|
|
</script>
|
|
</html> |