Skip to content
Discussion options

You must be logged in to vote

Finally solved using position indices in a for-of loop (see below: 'For loop that creates trial information iteratively over trials (3 steps)').


<!DOCTYPE html>
<html>

  <head>

    <!-- jsPsych plugins -->
    <script src="../jspsych.js"></script>
    <script src="../plugins/jspsych-html-keyboard-response.js"></script>
    <script src="../plugins/jspsych-html-button-response.js"></script>

    <!-- CSS -->
    <link rel="stylesheet" href="../css/jspsych.css">

    <style>
      body.jspsych-display-element {
        color: #ececec;
        background-color: #2b2b2b;
      }

      #jspsych-html-keyboard-response-stimulus {
        font-size: 32px;
      }

      .fas,
      .far {
    …

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@pablobernabeu
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by pablobernabeu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants