jsPsych/examples/randomize-order.html
2016-12-09 21:25:56 -05:00

42 lines
736 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>
<body>
<div id="jspsych-target"></div>
</body>
<script>
var first = {
type: 'text',
text: 'Welcome. Press any key to begin.'
}
var overall = {
type: 'text',
randomize_order: true,
timeline: [
{timeline:[
{text: 'a'},
{text: 'b'}
]},
{timeline:[
{text: '1'},
{text: '2'}
]}
]
}
jsPsych.init({
timeline: [first,overall],
default_iti: 0,
on_finish: function() { jsPsych.data.displayData(); }
});
</script>
</html>