PennController for IBEX › Forums › Support › Re-reading sentences in the SPR option › Reply To: Re-reading sentences in the SPR option
August 20, 2022 at 7:36 pm
#8346

Keymaster
Hello,
Assuming you use the native DashedSentence and Question controllers, you could embed them in a PennController trial like this:
newTrial( newController("1stpass", "DashedSentence", {s: "This is a dummy sentence"}).log().print().wait().remove() , newCanvas("buttonContainer", "30em", "1em") .add( 0 , 0 , newButton("Continue") ) .add( "right at 100%" , 0 , newButton("Read the sentence again").callback( clear() , newController("2ndpass", "DashedSentence", {s: "This is a dummy sentence"}) .log().print().wait().remove() , getButton("Continue").click() ) ) .center() .print() , getButton("Continue").wait() , clear() , newController("Question", {as: ["Yes","No"], q: "Was the sentence felicitous?"}).log().print().wait() )
Jeremy