-
-
Save fonsecajavier/eeeeddf1c8b54ba61baad447b97aa814 to your computer and use it in GitHub Desktop.
Injected snippet for Welltok surveys in Qualtrics
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
<head> | |
<script type="text/javascript"> | |
window.iFrameResizer = { | |
readyCallback: function(){ | |
parentIFrame.sendMessage(documentHeight()) | |
} | |
} | |
function documentHeight() { | |
return Math.max( | |
document.documentElement.clientHeight, | |
document.body.scrollHeight, | |
document.documentElement.scrollHeight, | |
document.body.offsetHeight, | |
document.documentElement.offsetHeight | |
); | |
} | |
</script> | |
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/3.5.3/iframeResizer.contentWindow.js"></script> | |
</head> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment