mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 19:20:55 +00:00
fix an example for html-audio-response that used old button_html syntax
This commit is contained in:
parent
516dae4b86
commit
9d2876987f
@ -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 = {
|
||||
|
@ -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>`
|
||||
}
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user