Embed Instructions: Spanish Language Health Insurance Marketplace Calculator

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 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.

Embed Code Options

IFRAME

If you are inserting the subsidy 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.

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/calculadora-del-mercado-de-seguros-medicos-frameless/&quot; width="100%" height="400"></ifr' + 'ame>');
window.addEventListener('message', function(e) {
if (e.origin !== "https://kff.org&quot; && e.origin !== "https://www.kff.org&quot;) return;
document.getElementById('nnc-widget').style.height = e.data.height;
}, false);
</script>

KFF Headquarters: 185 Berry St., Suite 2000, San Francisco, CA 94107 | Phone 650-854-9400
Washington Offices and Barbara Jordan Conference Center: 1330 G Street, NW, Washington, DC 20005 | Phone 202-347-5270

www.kff.org | Email Alerts: kff.org/email | facebook.com/KFF | twitter.com/kff

The independent source for health policy research, polling, and news, KFF is a nonprofit organization based in San Francisco, California.