Skip to content
Discussion options

You must be logged in to vote

Hi @petyaracz, here's how I would do this. (Standard disclaimer: this may not be the best/easiest way)

<!DOCTYPE html>
<html>
  <head>
    <title>Fake dyad experiment</title>
    <script src="https://unpkg.com/[email protected]"></script>
    <script src="https://unpkg.com/@jspsych/[email protected]"></script>
    <link href="https://unpkg.com/[email protected]/css/jspsych.css" rel="stylesheet" type="text/css" />
    <meta charset="UTF-8">
  </head>
  <body></body>
  <script>
    const jsPsych = initJsPsych();

    var trial = {
      type: jsPsychHtmlButtonResponse,
      stimulus: 'The name of a popular red fruit is:',
      choices: ['apple','carburator'],
      prompt:'<p>Play…

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
7 replies
@petyaracz
Comment options

@becky-gilbert
Comment options

@petyaracz
Comment options

@petyaracz
Comment options

@becky-gilbert
Comment options

Answer selected by becky-gilbert
Comment options

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