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

#7526
HPI
Participant

Dear Jeremy,

I have noticed that the calculation of RT within the script is reported in the results, but it’s not correctly reported if I pass the table in R with the tidyverse function.
Do you know what might be the reason?

Then:

I am implementing the practice, and the practice must provide feedback so that it can be “assured” the participant has understood the task, and should allow to start the experiment over X trials correctly answered, otherwise it should reload the practice.
Summary: spacebar – loadpicture; spacebar – load sentence – spacebar – load a canva with smileys representing 3 level oc categorical judgment.

I guess I have to make a column for the expected key each trial of the practice, then after each answer it should check whether the key match or not, if the pressed key is different it should provide the feedback like a text message, and a counter must go up of 1. If the counter at the end of the practice is higher than, let’s say 5, it should reload the trial practice, if it’s below 5, it should load the experimental trial.

Do you think is implementable? Do you have any tips on how to write in javascript?

I attach the piece of code that loads the scale with the keypress.

Thank you so much for your help,
HPI

   newText("How appropriate is the sentence describing the picture?")
    .css("font-size", 18)
    .css("font-family", "Verdana", "sans-serif")
    .center()
    .print()
    .log()
    ,
    

    newCanvas( "Smiley_Scale_practice" , 1000 , 107 )
    .settings.css( "border" , "solid 1px white" )
    .settings.center()
    .settings.add( 100,0, newImage("inappropriate", "sad.jpg") )
    .settings.add( 450,0, newImage("infelicitous", "neutral.jpg") )
    .settings.add( 800,0, newImage("appropriate", "happy.jpg") )
    .print()
    .log()
    ,
        
    newCanvas( "Smiley_Scale_Label_practice" , 1000 , 35 )
    .settings.css( "border" , "solid 1px white" )
    .settings.css("font-size", 18)
    .settings.css("font-family", "Verdana", "sans-serif")
    .settings.center()
    .settings.add( 70,0, newText("1 sad", "V - inappropriate" ) )
    .settings.add( 325,0, newText("2 neutral", "B - neither inappropriate nor appropriate ") )
    .settings.add( 780,0, newText("3 happy", "N - appropriate") )
    .print()
    .log()
    ,
    
    newVar("RT_smiley_practice", 0).global().set(t_s =>Date.now())
    ,
    
    getCanvas("Smiley_Scale_practice")
    .refresh()
    .log()
    ,
        
    getCanvas("Smiley_Scale_Label_practice")
    .refresh()
    .log()
    ,
    
    newText("warning_practice", "Please provide a judgment before you can continue")
    .css("font-size", 20)
    .css("font-family", "Verdana", "sans-serif")
    //.css("width", "40em")
    .center()
    .color("red")
    .hidden()
    .print()
    ,