fix bug from #233

This commit is contained in:
Josh de Leeuw 2016-05-21 16:53:54 -04:00
parent 2d60aa2071
commit 613e692567
2 changed files with 32 additions and 1 deletions

View File

@ -615,7 +615,7 @@ var jsPsych = (function() {
}
$('#jspsych-fullscreen-btn').off('click');
DOM_target.html('');
go();
setTimeout(go, 1000);
});
}
} else {

View File

@ -0,0 +1,31 @@
<!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_1 = {
type: 'text',
text: 'This trial should display. Click to continue.',
cont_key: 'mouse'
}
jsPsych.init({
display_element: $('#jspsych-target'),
timeline: [block_1],
fullscreen: true,
on_finish: function() {
jsPsych.data.displayData();
}
});
</script>
</html>