mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-12 16:48:12 +00:00
34 lines
675 B
HTML
34 lines
675 B
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<script src="js/jquery.min.js"></script>
|
|
<script src="../jspsych.js"></script>
|
|
<script src="../plugins/jspsych-text.js"></script>
|
|
<link rel="stylesheet" href="../css/jspsych.css"></link>
|
|
</head>
|
|
<body>
|
|
<div id="jspsych-target"></div>
|
|
</body>
|
|
<script>
|
|
|
|
var block = {
|
|
type: 'text',
|
|
text: 'Welcome to the experiment. Press any key to begin.'
|
|
}
|
|
|
|
var if_chunk = {
|
|
chunk_type: 'if',
|
|
condition_function: function(){
|
|
return true;
|
|
},
|
|
timeline: [block]
|
|
}
|
|
|
|
jsPsych.init({
|
|
display_element: $('#jspsych-target'),
|
|
experiment_structure: [block, if_chunk]
|
|
});
|
|
|
|
</script>
|
|
</html>
|