helloPlay
helloPlay.js
xxxxxxxxxx
define(['timeAPI'], function(APIconstructor) {
var API = new APIconstructor();
// #### Create trial sequence
API.addSequence([
{
input: [
{handle:'space',on:'space'}
],
layout: [
// This is a stimulus object
{
media :{word:'Hello world'},
css:{fontSize:'2em',color:'#D7685A'}
}
],
interactions: [
// This is an interaction (it has a condition and an action)
{
conditions: [
{type:'inputEquals',value:'space'}
],
actions: [
{type:'endTrial'}
]
}
]
}
]);
// #### Activate the player
return API.script;
});
Last modified March 11, 2021: setup hugo (11980dc)