Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

JATOS abort button problem

Hello,

The abort button seems to use all space on the screen below it and to its right. This is fine if the button is in the bottom right-hand corner; however, a major problem is if it is in the top left. I would like to have the abort button in a top corner because it gets accidentally hit when it is a lower corner and the task is taken on a touch screen.

Thank you for any help,

Jason

Comments

  • Hi Jason,

    You can pass CSS information in the style parameter to the jatos.addAbortButton function. Have a look at the docs: https://www.jatos.org/jatos.js-Reference.html#jatosaddabortbutton.

    I didn't try it but putting the button in the top should be something like:

    jatos.addAbortButton({
      style: "top:1em"
    });
    

    Best,

    Kristian

  • This is how I added the button.


       jatos.addAbortButton({
        text: "Quit",
        confirmText: "Do you really want to quit?",
        tooltip: "This will quit the entire experiment",
        msg: "This worker aborted the mission.",
        style: "top:8px; left:16px; color:green"
       });
    
Sign In or Register to comment.