The independent source for health policy research, polling, and news.
The Kaiser Family Foundation encourages other organizations to embed the Individual Mandate Penalty 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 calculator widget is intended to be embedded in areas between 300 px and 800 px wide and will expand to fill the container in which you insert it. At 300 px wide, the calculator area will be approximately 1050 px tall.
IFRAME
If you are inserting the calculator into a content management system (CMS) and cannot control its filters, we recommend that you use the basic IFRAME embed code. Many CMSs, such as WordPress, will strip out Javascript when you save the post.
<iframe frameborder="0" src="https://www.kff.org/interactive/individual-mandate-penalty-calculator-frameless/" width="100%" height="1000"></iframe> |
Javascript Embed Code
If you CAN override your CMS’s filters (as is generally possible in Drupal), or if you can edit your template files directly, use the Javascript embed code. The Javascript embed code automatically resizes the height of the widget to fit exactly, and it will resize whenever the parent container’s width changes, making this version preferable for responsive templates.
<script type="text/javascript"> | |
document.write('<ifr' + 'ame id="nnc-widget" frameborder="0" src="https://www.kff.org/interactive/individual-mandate-penalty-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> |