jsPsych/tests&examples/jspsych-vsl-animate-occlusion.html
2015-02-19 10:32:10 -05:00

34 lines
821 B
HTML

<!doctype html>
<html>
<head>
<script src="js/jquery.min.js"></script>
<script src="js/snap.svg-min.js"></script>
<script src="../jspsych.js"></script>
<script src="../plugins/jspsych-vsl-animate-occlusion.js"></script>
<link rel="stylesheet" href="../css/jspsych.css"></link>
</head>
<body>
<div id="jspsych-target"></div>
</body>
<script>
var images = ["img/1.gif","img/2.gif","img/3.gif","img/4.gif","img/5.gif","img/6.gif","img/7.gif","img/8.gif","img/9.gif","img/10.gif"];
// create vsl block for jspsych
var block = {
type: 'vsl-animate-occlusion',
stimuli: images
};
function start(){
jsPsych.init({
display_element: $('#jspsych-target'),
experiment_structure: [block]
});
}
jsPsych.preloadImages(images, start);
</script>
</html>