Reply To: How to present two lines on one page?

PennController for IBEX Forums Support How to present two lines on one page? Reply To: How to present two lines on one page?

#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 ago by Jeremy. Reason: Tried to make the example closer to what was described