Skip to content

Instantly share code, notes, and snippets.

@Albert-W
Last active June 20, 2024 01:33
Show Gist options
  • Save Albert-W/e37d1c4fa30c430c37d7b1b1fe9b60d8 to your computer and use it in GitHub Desktop.
Save Albert-W/e37d1c4fa30c430c37d7b1b1fe9b60d8 to your computer and use it in GitHub Desktop.
embed gist in iframe

Embed gist in iframe

it is 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>">
@martin-genesis
Copy link

Awesome! Just what I need right now 👍
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment