This commit is contained in:
Josh de Leeuw 2015-02-19 10:33:55 -05:00
parent b9ea8853ac
commit c0e9fb8d8e

View File

@ -0,0 +1,45 @@
<!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-grid-scene.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"];
var scenes = [
[
["img/1.gif", "img/2.gif", 0],
[ 0, "img/3.gif", 0],
["img/5.gif", "img/4.gif", 0]
],
[
[ 0, 0, "img/6.gif"],
[ "img/10.gif", "img/7.gif", 0],
[ 0,"img/8.gif", "img/9.gif" ]
]
];
var block = {
type: 'vsl-grid-scene',
stimuli: scenes
};
function start(){
jsPsych.init({
display_element: $('#jspsych-target'),
experiment_structure: [block]
});
}
jsPsych.preloadImages(images, start);
</script>
</html>