Last active
August 29, 2015 14:19
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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