PennController for IBEX › Forums › Support › How to add a "come back" button to the practice trial › Reply To: How to add a "come back" button to the practice trial
September 16, 2021 at 7:42 am
#7264
Participant
Hi, Jeremy! Thanks again!!
I did that, however, the experiment ends after the practice trial, it doens’t even show “instructions_E”
newTrial("instructions_E",
newText("instructions-1","Are you ready?")
.cssContainer({
"border": "5px solid black",
"background-color": "yellow",
"color": "black",
"font-size":"50px"})
.center()
.print()
,
newText("instructions-6","<p>Feel free to take a break now</p>")
.cssContainer({
"font-size":"22px",
"text-align": "center"})
.center()
.print()
,
newImage("boy-image","boy.png")
.size(200,200)
.center()
.print()
,
newText("instructions-7","<p><center> If you want to practice again, click on the button below")
.cssContainer({
"font-size":"22px",
"text-align": "center"})
.center()
.print()
,
newButton("come back","PRACTICE AGAIN")
.callback(jump(startsWith("p_trial_1_no_cue_UP"))) -> (I guess I'm making the mistake here, because of the third parenthesis, should I put it somewhere else?)
.center()
.print()
,
newText("instructions-8","<p><center>When you feel <b style=color:red;>READY</b>, click on the button below:</p></center>")
.cssContainer({
"font-size":"22px",
"text-align": "center"})
.center()
.print()
,
newButton("wait","START THE GAME")
.center()
.print()
.wait()
);