PennController.Footer( sequenceOfCommands )
(since beta 0.3)
Will append sequenceOfCommands
to the end of the sequence of commands of each trial created with PennController
.
Example:
[js highlight=”1-7″ try=”data”]PennController.Footer(
newText(“validation instructions”, “Click to go to next trial”)
.print()
,
newButton(“validation button”, “Validate”)
.print()
.wait()
);
PennController(
newText(“test sentence”, “The cat chases the mouse”)
.print()
,
newScale(“natural”, 5)
.settings.slider()
.settings.before( newText(“left”, “Unnatural”) )
.settings.after( newText(“right”, “Natural”) )
.print()
);
[/js]
Without the footer, the trial defined above would be validated immediately after it has started running, since it includes no wait
command. Thankfully, the footer adds a button at the bottom of the page that must be clicked for validation.