Reply To: html layout/event times/selector vs. scale/ compatibility

PennController for IBEX Forums Support html layout/event times/selector vs. scale/ compatibility Reply To: html layout/event times/selector vs. scale/ compatibility

#7415
HPI
Participant

Hi,
Thank you for your help. I am not sure I have understood the canvas suggestion. Right now to self-pace the experiment I used this strategy, so the participant advances with the spacebar. I got the input to allow the participant to advance with a mouse click and not with a keypress.

newTrial("welcome", 

    newHtml("welcome", "welcome.html")
        .css("line-height","1.4")
        .settings.log()
        .print()
    ,

    newKey("Go_to_page2"," ")
    .log()
    .wait()
    ,
    
).setOption("hideProgressBar",true);

Do you mean to implement something like this?

newTrial("welcome", 

    newCanvas( "clicks", 100, 100)
        .settings.css( "border" , "solid 1px white" )
        .print("center at 50vw","middle at 50vh")
    ,

    newHtml("welcome", "welcome.html")
        .css("line-height","1.4")
    ,
        
     newSelector("clicks_1")
    .add(getCanvas("clicks"), getHtml("welcome"))
    .print()
    .refresh()
    .log()
    .once()
    .wait()
,

    //newKey("Go_to_page2"," ")
    //.log()
    //.wait()
    //,
    
)

This right now does not work. I was wondering if with something like “newKey” I could catch the key of the mouse without placing buttons.
I am not sure I understood what I should remove with the canvas strategy.
Thank you for your time,
HPI