Skip to content

Instantly share code, notes, and snippets.

Created September 16, 2019 20:42
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Embed Blocktopus to a Token Sale landing page
// The following Javascript resizes the iframe's height when Blocktopus' embeded page's height changes
window.addEventListener("message", receiveMessage, false);
function receiveMessage(event) {
if ( == 'blocktopus_height') {
iframe = document.getElementById("blocktopus_iframe");
iframe.height = + "px";
<iframe id='blocktopus_iframe' src="" width="100%" height="500px"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment