add minor note about embedding images in buttons

This commit is contained in:
Becky Gilbert 2021-10-15 14:14:06 -07:00
parent d6d3b75326
commit a14ac48a99

View File

@ -72,3 +72,8 @@ In addition to the [default data collected by all plugins](../overview/plugins.m
</div> </div>
<a target="_blank" rel="noopener noreferrer" href="../../demos/jspsych-audio-button-response-demo-2.html">Open demo in new tab</a> <a target="_blank" rel="noopener noreferrer" href="../../demos/jspsych-audio-button-response-demo-2.html">Open demo in new tab</a>
Note: if you want the images to look more like jsPsych buttons, i.e. with borders and different styles for hover/active/disabled states, then you can also embed the image element inside the default `button_html` string, like this:
```js
button_html: '<button class="jspsych-btn"><img src="%choice%" /></button>'
```