mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 11:10:54 +00:00
29 lines
900 B
HTML
29 lines
900 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">
|
|
</head>
|
|
<body>
|
|
</body>
|
|
<script>
|
|
var trial = {
|
|
type: 'instructions',
|
|
pages: [
|
|
'Welcome to the experiment. Click next to begin.',
|
|
'<div>In this experiment, you will view a ' +
|
|
'series of images and answer questions.<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],
|
|
});
|
|
</script>
|
|
</html> |