Howdy, Stranger!

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

Supported by

How could I combine two jspsych components with Jspsych-builder?

Hi, I'm a freshman to jatos. Now I have a question about jspsych-builder and jatos. I have two components, which the first is a jspsych timeline with some basic information. The second component is a jspsych experiment which is the formal experiment. I used the jspsych builder to write the two components. My question is how could I combine these two components in jatos? The jspsych builder will package all the scripts and name them the same (e.g., app.js, index.html). So if I copy the second component of jspsych, the index file of component 2 will import the content of component 1.

Comments

  • Hi, that's easy to do. Just change the filenames of your HTML files, to (for example) index_component1.html and index_component2.html.

    Then in each of the components' properties, replace the name of the html file with the correct ones.

    And if your css files are different, you'll have to change the references to them inside your HTML scripts to their new unique filenames. (if they are jspsych, they might be identical, so you might not need to do this at all).

    Hope this helps. If it solves your problem, please resolve the JATOS GitHub issue though (and post here in the future, to keep the forum clean and avoid duplicates)

    Best

Sign In or Register to comment.