mobile view and treatments

24 views
Skip to first unread message

Matteo Scacchi

unread,
Jun 12, 2023, 9:36:07 AM6/12/23
to classEx - Help and Discussion Forum

Dear forum,

I have a couple of questions about Lioness.

My first doubt concerns how the experiment is displayed on the screens of mobile phones and tablets. The elements are small and text can be read only zooming and scrolling the screen from left to the right, making it not very handy for mobile users. I tried with additional css but I didn’t manage to solve the problem.

 

The second problem regards the fact that in my experimenti I have 4 treatments and I randomized them with the following javaScript code:

 

var aux=playerNr%8;

if (aux==1 || aux==2)

    treatment=1;

if (aux==3 || aux==4)

    treatment=2;

if (aux==5 || aux==6)

    treatment=3;

if (aux==7 || aux===0)

    treatment=4;

setRole(treatment);

record('treatment',treatment);

 

it apparently works, but I was wondering wether there was a simple funcion of Lioness that does it more efficiently. I did not find any instruction about that on Lioness documentation. This funcition is clearly described on classEx, so maybe I lost something trivial about Lioness.

Thank you!

Best regards,

Matteo Scacchi

Reply all
Reply to author
Forward
0 new messages