Skip to content
Discussion options

You must be logged in to vote

I made a sample program which is available at
https://jm91t3ybwr.cognition.run/

I used an excellent hosting service: cognition.run.

Here is the code:

  function getPresentedName(file_path){
    const end_position = file_path.indexOf('.png');
    return file_path.substr(0, end_position);
  }
  const trial = {
    type: "html-keyboard-response",
    stimulus: function(){
      return `<table><tr>
        <td><img src="${jsPsych.timelineVariable('image1', true)}"></td>
        <td><img src="${jsPsych.timelineVariable('image2', true)}"></td>
        <td><img src="${jsPsych.timelineVariable('image3', true)}"></td>
        <td><img src="${jsPsych.timelineVariable('image4', true)}"></td>

Replies: 5 comments 14 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@becky-gilbert
Comment options

@ncuneo0711
Comment options

@becky-gilbert
Comment options

@rndres1
Comment options

@kurokida
Comment options

Answer selected by becky-gilbert
Comment options

You must be logged in to vote
2 replies
@jodeleeuw
Comment options

@AnneVogt
Comment options

Comment options

You must be logged in to vote
4 replies
@jodeleeuw
Comment options

@AnneVogt
Comment options

@becky-gilbert
Comment options

@AnneVogt
Comment options

Comment options

You must be logged in to vote
1 reply
@becky-gilbert
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants