/subsidy-calculator-embed-js.html Secret
Created
November 15, 2017 19:50
Star
You must be signed in to star a gist
Usage Guidelines: The Kaiser Family Foundation encourages other organizations to embed the Subsidy Calculator on their websites. To do so, simply follow the instructions below. Please do not alter the embed code in any way without advanced permission. The subsidy calculator widget is intended to be embedded in areas between 300 px and 800 px wid…
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
<script type="text/javascript"> | |
document.write('<ifr' + 'ame id="nnc-widget" frameborder="0" src="https://www.kff.org/interactive/subsidy-calculator-frameless/" width="100%" height="400"></ifr' + 'ame>'); | |
window.addEventListener('message', function(e) { | |
if (e.origin !== "https://kff.org" && e.origin !== "https://www.kff.org") return; | |
document.getElementById('nnc-widget').style.height = e.data.height; | |
}, false); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment