Reply To: Come back button

PennController for IBEX Forums Support Come back button Reply To: Come back button

#8426
Jeremy
Keymaster

Hi,

Just pass the label of the trial you want to jump to in jump:

newTrial("Page3",
    defaultText.css("font-size", "1.2em").center().print()
    ,
    newText(" hello world ")
    ,
    newButton("come back")
        .center()
        .callback( jump("Page2") , end() )
        .print()
    ,
    newButton("testtt", "Continue")      
        .center()
        .css({"margin-top" : "50px"})
        .print()
        .wait()
)

newTrial("Page4",
    defaultText.css("font-size", "1.2em").center().print()
    ,
    newText(" hello world 2.0 ")
    ,
    newButton("come back")
        .center()
        .callback( jump("Page3") , end() )
        .print()
    ,   
    newButton("testtt", "Continue")      
        .center()
        .css({"margin-top" : "50px"})
        .print()
        .wait()
)

Jeremy