button <- function(id, img) {
HTML(str_c('
<button id="', id, '" type="button" class="btn btn-default action-button shiny-bound-input">
<img src="img/', img, '.png" />
</button>
'))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.