fix an example for html-audio-response that used old button_html syntax

This commit is contained in:
Josh de Leeuw 2023-10-19 11:47:29 -04:00
parent 516dae4b86
commit 9d2876987f
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@
}, },
prompt: '<p>Click the object the matches the spoken name.</p>', prompt: '<p>Click the object the matches the spoken name.</p>',
choices: ['img/9.gif','img/10.gif','img/11.gif','img/12.gif'], 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 = { var trial_loop = {

View File

@ -159,7 +159,7 @@ import htmlAudioResponse from '@jspsych/plugin-html-audio-response';
}, },
prompt: '<p>Click the object the matches the spoken name.</p>', prompt: '<p>Click the object the matches the spoken name.</p>',
choices: ['img/9.gif','img/10.gif','img/11.gif','img/12.gif'], 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>`
} }
``` ```