PennController for IBEX › Forums › Support › How to present two lines on one page? › Reply To: How to present two lines on one page?
April 4, 2020 at 3:56 pm
#4991
Jeremy
Keymaster
Hello Jun,
Yes, one option would be to inject the native-Ibex DashedSentence controller in a PCIbex trial, like this:
newTrial( newText("context", "Today is a very nice day!") .css('font-family', 'monospace') .center() .print() , newText("instructions", "Press Space to start reading the next sentence
").italic().print() , newKey(" ").wait() , getText("instructions").remove() , getText("context").text("_____ __ _ ____ ____ ____") , newController( "DashedSentence" , {s: "So, I went outside for a walk.", display: "in place"} ) .print() .wait() )
More info on the DashedSentence controller in the original Ibex documentation
Jeremy
- This reply was modified 4 years, 8 months ago by Jeremy. Reason: Tried to make the example closer to what was described