mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-12 16:48:12 +00:00
add minor note about embedding images in buttons
This commit is contained in:
parent
d6d3b75326
commit
a14ac48a99
@ -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>'
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user