Skip to content

Instantly share code, notes, and snippets.

@youvalv
Forked from Albert-W/embed gist.md
Last active March 3, 2021 19:24
Show Gist options
  • Save youvalv/b4bba90d2f8312d7652ba563e0f0bbd7 to your computer and use it in GitHub Desktop.
Save youvalv/b4bba90d2f8312d7652ba563e0f0bbd7 to your computer and use it in GitHub Desktop.
embed gist in iframe

Embed gist in an iframe

Used to embed gist to an asynchronously-loaded web pages.

<iframe 
    width="100%"
    height="350"    
    src="data:text/html;charset=utf-8,
    <head><base target='_blank' /></head>
    <body><script src='https://gist.github.com/Albert-W/e37d1c4fa30c430c37d7b1b1fe9b60d8.js'></script>
    </body>"></iframe>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment