rmdgallery::gallery_content( class = c("gallery-embed-url", params$class), gallery_config = params$gallery_config, if (!isFALSE(params$iframe_resizer)) { htmltools::tags$script( src = sprintf( "https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/%s/iframeResizer.min.js", params$iframe_resizer ) ) }, htmltools::tags$iframe( id = "gallery-iframe", src = params$content, frameborder = "0", style = do.call(htmltools::css, c(list("min-width" = "100%"), params$css)) ), if (!isFALSE(params$iframe_resizer)) { htmltools::tags$script( "iFrameResize( { /* Options https://github.com/davidjbradshaw/iframe-resizer#api-documentation */ // Do not check the origin, since we embed from arbitrary domains checkOrigin: false, // Avoid setting the scrolling attribute as we may have responsive and non-responsive content scrolling: 'omit' }, '#gallery-iframe' );" ) } )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.