Skip to content

Instantly share code, notes, and snippets.

@duqcyxwd
Forked from sundbry/github-gist-in-iframe.html
Created September 3, 2021 03:43
Show Gist options
  • Save duqcyxwd/d035fcd590fd1a13d80c2986fb6c7d36 to your computer and use it in GitHub Desktop.
Save duqcyxwd/d035fcd590fd1a13d80c2986fb6c7d36 to your computer and use it in GitHub Desktop.
Embed a Github Ggist in an iframe (without <script> tags in your document)
<iframe frameborder=0
style="min-width: 200px; width: 60%; height: 460px;"
scrolling="no"
seamless="seamless"
srcdoc='<html><body><style type="text/css">.gist .gist-data { height: 400px; }</style><script src="https://gist.github.com/sundbry/5e0507d93d4c89023b2ba5f39f27f722.js"></script></body></html>'
></iframe>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment