Skip to content

Instantly share code, notes, and snippets.

@fdemiramon
Last active August 29, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fdemiramon/c550972d07aab81e7c85 to your computer and use it in GitHub Desktop.
Save fdemiramon/c550972d07aab81e7c85 to your computer and use it in GitHub Desktop.
Fundshop iframe integration (replace the http://www.example.com by the URL provided)
<iframe id="childframe" src="http://www.example.com/fr/light-simulation-accounts" id="childframe" width="992" frameborder="0" seamless="seamless" scrolling="no" style="height: 1231px;"></iframe>
<script type="text/javascript">
function receiveMessage(event) {
if (event.origin !== "http://www.example.com")
return;
document.getElementById('childframe').style.height = event.data + "px";
}
window.addEventListener("message", receiveMessage, false);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment