Look-Up: Check Out Infection Records Of 15,000 U.S. Nursing Homes

( function() {
var func = function() {
var iframe = document.getElementById(‘wpcom-iframe-685d3ce039573da008e7f1bd4366c8e6’)
if ( iframe ) {
iframe.onload = function() {
iframe.contentWindow.postMessage( {
‘msg_type’: ‘poll_size’,
‘frame_id’: ‘wpcom-iframe-685d3ce039573da008e7f1bd4366c8e6’
}, “https://embeds.kff.org” );
}
}

// Autosize iframe
var funcSizeResponse = function( e ) {

var origin = document.createElement( ‘a’ );
origin.href = e.origin;

// Verify message origin
if ( ’embeds.kff.org’ !== origin.host )
return;

// Verify message is in a format we expect
if ( ‘object’ !== typeof e.data || undefined === e.data.msg_type )
return;

switch ( e.data.msg_type ) {
case ‘poll_size:response’:
var iframe = document.getElementById( e.data._request.frame_id );

if ( iframe && ” === iframe.width )
iframe.width = ‘100%’;
if ( iframe && ” === iframe.height )
iframe.height = parseInt( e.data.height );

return;
default:
return;
}
}

if ( ‘function’ === typeof window.addEventListener ) {
window.addEventListener( ‘message’, funcSizeResponse, false );
} else if ( ‘function’ === typeof window.attachEvent ) {
window.attachEvent( ‘onmessage’, funcSizeResponse );
}
}
if (document.readyState === ‘complete’) { func.apply(); /* compat for infinite scroll */ }
else if ( document.addEventListener ) { document.addEventListener( ‘DOMContentLoaded’, func, false ); }
else if ( document.attachEvent ) { document.attachEvent( ‘onreadystatechange’, func ); }
} )();

Click here to download KHN’s full data set.

Data analysis by KHN data editor Elizabeth Lucas and KHN senior correspondent Jordan Rau. Data visualizations by KHN producer Hannah Norman.

Next Post

Must-Reads Of The Week From Brianna Labuskes

Sat Mar 14 , 2020
The Friday Breeze Newsletter editor Brianna Labuskes, who reads everything on health care to compile our daily Morning Briefing, offers the best and most provocative stories for the weekend. Happy Friday the 13th! Which feels extra appropriate this week. One of the very few silver linings of our current situation […]