Skip to content

Commit

Permalink
fix an example for html-audio-response that used old button_html syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
jodeleeuw committed Oct 19, 2023
1 parent 516dae4 commit 9d28769
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/demos/jspsych-html-audio-response-demo3.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
},
prompt: '<p>Click the object the matches the spoken name.</p>',
choices: ['img/9.gif','img/10.gif','img/11.gif','img/12.gif'],
button_html: '<img src="%choice%" style="width:100px; padding: 20px;"></img>'
button_html: (choice) => `<img src=${choice} style="width:100px; padding: 20px;"></img>`
}

var trial_loop = {
Expand Down
2 changes: 1 addition & 1 deletion docs/plugins/html-audio-response.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ import htmlAudioResponse from '@jspsych/plugin-html-audio-response';
},
prompt: '<p>Click the object the matches the spoken name.</p>',
choices: ['img/9.gif','img/10.gif','img/11.gif','img/12.gif'],
button_html: '<img src="%choice%" style="width:100px; padding: 20px;"></img>'
button_html: (choice) => `<img src=${choice} style="width:100px; padding: 20px;"></img>`
}
```

Expand Down

0 comments on commit 9d28769

Please sign in to comment.